3v4l.org

run code in 300+ PHP versions simultaneously
<?php function default_error_handler($errorNumber, $message, $errfile, $errline){ var_dump($errorNumber, $message, $errfile, $errline, error_get_last()); echo "\r\n /default_error_handler"; } function unexpected_shutdown_handler(){ var_dump(error_get_last()); echo "\r\n /unexpected_shutdown_handler"; } set_error_handler('default_error_handler'); register_shutdown_function('unexpected_shutdown_handler'); try{ $a=new Fi(); }catch(Exception $e){ echo "\r\n catch Exception"; var_dump($e); } echo "\r\n end"; ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Class "Fi" not found in /in/Zp645:14 Stack trace: #0 {main} thrown in /in/Zp645 on line 14 array(4) { ["type"]=> int(1) ["message"]=> string(84) "Uncaught Error: Class "Fi" not found in /in/Zp645:14 Stack trace: #0 {main} thrown" ["file"]=> string(9) "/in/Zp645" ["line"]=> int(14) } /unexpected_shutdown_handler
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:
40.69 ms | 401 KiB | 8 Q