3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { return bar(); } function bar(bool $x = true) { return ($x ? 'qux' : 'foobar')(); } function qux() { return bar(false); } function foobar() { return new \Exception("AAAAARGH"); } $terror = foo(); throw $terror;
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Exception: AAAAARGH in /in/ARP5v:16 Stack trace: #0 /in/ARP5v(8): foobar() #1 /in/ARP5v(12): bar(false) #2 /in/ARP5v(8): qux() #3 /in/ARP5v(4): bar() #4 /in/ARP5v(19): foo() #5 {main} thrown in /in/ARP5v on line 16
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:
55.33 ms | 2169 KiB | 4 Q