3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php public static function slow_equals($a, $b) { $diff = strlen($a) ^ strlen($b); for($i = 0; $i < strlen($a) AND $i < strlen($b); $i++) { $diff |= ord($a[$i]) ^ ord($b[$i]); } return $diff === 0; }
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected 'public' (T_PUBLIC) in /in/tu8JK on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_PUBLIC in /in/tu8JK on line 3
Process exited with code 255.