Added a new PHP implementation