3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php set_error_handler(function($errno, $errstr, $errfile, $errline){ echo $errstr; $myclass = new MyClass1; }); spl_autoload_register(function($class){ return eval("class $class{}") }); $myclass = new MyClass2; 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/9GVr8 on line 9
Process exited with code 255.