3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { function foo(int $i); } class X implements I { function foo(int $x) { echo $x; } } (new X)->foo(x: 1); (new X)->foo(i: 1); ?>
Output for git.master, git.master_jit
1 Fatal error: Uncaught Error: Unknown named parameter $i in /in/k3Rhl:8 Stack trace: #0 {main} thrown in /in/k3Rhl on line 8
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:
39.22 ms | 857 KiB | 4 Q