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){ echo $class; } eval(' class MyConcrete extends MyAbstract { public static function createInstance() {} } abstract class MyAbstract { public abstract static function createInstance(); } '); //$concrete = new MyConcrete; //$myclass = new MyClass;
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected 'eval' (T_EVAL) in /in/YX8hC on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_EVAL in /in/YX8hC on line 11
Process exited with code 255.