hash_equals

PHP 5 >= 5.6.0, PHP 7, PHP 8
hash_equals - Timing attack safe string comparison

Example #1 hash_equals example

Result: bool(true) bool(false)
PHP Version:


Example #2 of hash_equals

PHP Version:


Function hash_equals:

HASH Message Digest Framework Functions

Most used PHP functions