Another PHP implementation...

Because... whisky...