3v4l.org

run code in 300+ PHP versions simultaneously
<?php function handler1() { echo "\n######### handler1() called #########\n"; } function handler2() { echo "\n######### handler1() called #########\n"; print_r(error_get_last()); new bar(); } register_shutdown_function('handler1'); register_shutdown_function('handler2'); new foo();
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Class "foo" not found in /in/vpEd6:15 Stack trace: #0 {main} thrown in /in/vpEd6 on line 15 ######### handler1() called ######### ######### handler1() called ######### Array ( [type] => 1 [message] => Uncaught Error: Class "foo" not found in /in/vpEd6:15 Stack trace: #0 {main} thrown [file] => /in/vpEd6 [line] => 15 ) Fatal error: Uncaught Error: Class "bar" not found in /in/vpEd6:10 Stack trace: #0 [internal function]: handler2() #1 {main} thrown in /in/vpEd6 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:
62.41 ms | 401 KiB | 8 Q