3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_exception_handler(function () { ob_end_clean(); }); set_error_handler(function() { var_dump(debug_backtrace()); throw new Exception(); }); $a['waa'];
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { [0]=> array(4) { ["file"]=> string(9) "/in/35MkN" ["line"]=> int(13) ["function"]=> string(9) "{closure}" ["args"]=> array(4) { [0]=> int(2) [1]=> string(21) "Undefined variable $a" [2]=> string(9) "/in/35MkN" [3]=> int(13) } } } array(3) { [0]=> array(2) { ["function"]=> string(9) "{closure}" ["args"]=> array(4) { [0]=> int(8) [1]=> string(60) "ob_end_clean(): Failed to delete buffer. No buffer to delete" [2]=> string(9) "/in/35MkN" [3]=> int(4) } } [1]=> array(4) { ["file"]=> string(9) "/in/35MkN" ["line"]=> int(4) ["function"]=> string(12) "ob_end_clean" ["args"]=> array(0) { } } [2]=> array(2) { ["function"]=> string(9) "{closure}" ["args"]=> array(1) { [0]=> object(Exception)#3 (7) { ["message":protected]=> string(0) "" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/35MkN" ["line":protected]=> int(10) ["trace":"Exception":private]=> array(1) { [0]=> array(4) { ["file"]=> string(9) "/in/35MkN" ["line"]=> int(13) ["function"]=> string(9) "{closure}" ["args"]=> array(4) { [0]=> int(2) [1]=> string(21) "Undefined variable $a" [2]=> string(9) "/in/35MkN" [3]=> int(13) } } } ["previous":"Exception":private]=> NULL } } } } Fatal error: Uncaught Exception in /in/35MkN:10 Stack trace: #0 [internal function]: {closure}(8, 'ob_end_clean():...', '/in/35MkN', 4) #1 /in/35MkN(4): ob_end_clean() #2 [internal function]: {closure}(Object(Exception)) #3 {main} thrown in /in/35MkN on line 10
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:
33.44 ms | 410 KiB | 5 Q