3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Func { public static function __callStatic($name, $arguments) { if (!function_exists($name)) { // include } return call_user_func_array($name, $arguments); } } Func::foo('bar'); Func::{'foo\\bar'}('qux')
Output for 5.4.18 - 5.4.19
Parse error: syntax error, unexpected end of file in /in/CnOIl on line 16
Process exited with code 255.
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected end of file in /in/5EWft on line 16
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected '{', expecting T_STRING or T_VARIABLE or '$' in /in/5EWft on line 16
Process exited with code 255.