3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function handler($errno, $errstr) { var_dump($errno); return false; } if (version_compare(PHP_VERSION, '5.0.0', '<')) { set_error_handler('handler'); } else { set_error_handler('handler', ~0); } unction test($string) { $string = 'bar'; } $a = 'foo'; test(&$a); echo $a; eval($val.'(&$a);'); function_exists('error_get_last') && var_dump(error_get_last());
Output for 5.4.0 - 5.4.15
Parse error: syntax error, unexpected 'test' (T_STRING) in /in/osAhn on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.25
Parse error: syntax error, unexpected T_STRING in /in/osAhn on line 12
Process exited with code 255.