3v4l.org

run code in 300+ PHP versions simultaneously
<?php class load { public static function createException($c) { var_dump('create'); eval('class '.$c.' extend Exception {}'); } public static function loadClass($c) { var_dump('load'); try { self::loadCache(); } catch (NotFoundException $e) { eval('class '.$c.'{}'); } } public static function loadCache($c) { throw new NotFoundException; } } spl_autoload_register(array('load', 'loadClass')); spl_autoload_register(array('load', 'createException')); new x;
Output for git.master, git.master_jit, rfc.property-hooks
string(4) "load" Fatal error: Uncaught ArgumentCountError: Too few arguments to function load::loadCache(), 0 passed in /in/3beSf on line 16 and exactly 1 expected in /in/3beSf:24 Stack trace: #0 /in/3beSf(16): load::loadCache() #1 /in/3beSf(33): load::loadClass('x') #2 {main} thrown in /in/3beSf 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:
43.18 ms | 401 KiB | 8 Q