3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Autoload { public static function load($class) { return false; } public static function loadFile($path) { include $path; return self::$loadedClasses[$path]; } } // Register the autoloader before any existing autoloaders to ensure // it gets a chance to hear about every autoload request, and record // the file and class name for it. spl_autoload_register(__NAMESPACE__.'\Autoload::load', true, true); //try { class Foo extends Bar {}; /* } catch(Error $e) { var_dump($e); } */
Output for git.master_jit, git.master, rfc.property-hooks
Fatal error: Uncaught Error: Class "Bar" not found in /in/TZ9Aj:24 Stack trace: #0 {main} thrown in /in/TZ9Aj on line 24
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
32.23 ms | 405 KiB | 5 Q