3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?phpfunction myErrorHandler($errlevel, $errstr, $errfile, $errline){ echo "$errlevel: $errstr\n"; }set_error_handler("myErrorHandler");$foo = 'test'; $foo[] = 'bar';
based on nUC5G
Output for 5.4.0 - 5.4.34
Parse error: syntax error, unexpected 'myErrorHandler' (T_STRING) in /in/ZKiXV on line 1
Process exited with code 255.