3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php set_error_handler(function($errno, $errstr, $errfile, $errline){ echo $errstr; $myclass = new MyClass; }); spl_autoload_register(function($class){ return eval("class $class{}") }); eval(' class MyConcrete extends MyAbstract { public static function createInstance() {} } abstract class MyAbstract { public abstract static function createInstance(); } ');
Output for 5.3.0 - 5.4.17
Parse error: syntax error, unexpected '}' in /in/60O2j on line 9
Process exited with code 255.