3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(array $bar) { $bar = new \Exception(); var_dump(func_get_args()); throw new \Exception(); } foo([], 132);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> object(Exception)#1 (7) { ["message":protected]=> string(0) "" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/hv4FK" ["line":protected]=> int(3) ["trace":"Exception":private]=> array(1) { [0]=> array(4) { ["file"]=> string(9) "/in/hv4FK" ["line"]=> int(3) ["function"]=> string(3) "foo" ["args"]=> array(2) { [0]=> array(0) { } [1]=> int(132) } } } ["previous":"Exception":private]=> NULL } [1]=> int(132) } Fatal error: Uncaught Exception in /in/hv4FK:3 Stack trace: #0 /in/hv4FK(3): foo(Object(Exception), 132) #1 {main} thrown in /in/hv4FK on line 3
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.31 ms | 402 KiB | 8 Q