New PHP implementation