PHP implementation of PHP 5.6's new function hash_equals()