3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function hash_equals($a, $b) { return substr_count($a ^ $b, "\0") * 2 === strlen($a . $b); } var_dump(hash_equals("a", "a"));
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.4
Fatal error: Cannot redeclare hash_equals() in /in/vFave on line 5
Process exited with code 255.
Output for hhvm-3.17.3
Fatal error: Uncaught Error: Cannot redeclare hash_equals() in : Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.15.4

Process exited with code 139.
Output for hhvm-3.11.1 - 3.13.2
Fatal error: Uncaught Error: Function already defined: hash_equals in : Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.1
Fatal error: Function already defined: hash_equals
Process exited with code 255.
Output for 5.5.0 - 5.5.38
bool(true)