The Zend Engine hashing algorithm rewritten in PHP