3v4l.org

run code in 500+ PHP versions simultaneously
<?php function handleError($errno, $errstr, $errfile, $errline) { global $php_errormsg; var_dump($php_errormsg); var_dump(error_get_last()); } function shutdownFunc() { var_dump(error_get_last()); } set_error_handler('handleError'); register_shutdown_function('shutdownFunc'); if ($x) { echo "x\n"; } else { echo "no x\n"; } var_dump(error_get_last()); nosuchfunc();
Output for rfc.property-hooks, git.master, git.master_jit
NULL NULL no x NULL Fatal error: Uncaught Error: Call to undefined function nosuchfunc() in /in/QKQKY:25 Stack trace: #0 {main} thrown in /in/QKQKY on line 25 array(4) { ["type"]=> int(1) ["message"]=> string(103) "Uncaught Error: Call to undefined function nosuchfunc() in /in/QKQKY:25 Stack trace: #0 {main} thrown" ["file"]=> string(9) "/in/QKQKY" ["line"]=> int(25) }
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:
41.25 ms | 2173 KiB | 4 Q