3v4l.org

run code in 300+ PHP versions simultaneously
<?php blah(bar: "1"); function blah($foo = "deffoo", $bar) { echo '$foo: ' . $foo . "\n" . '$bar: ' . $bar; }
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Optional parameter $foo declared before required parameter $bar is implicitly treated as a required parameter in /in/cg4DA on line 5 Fatal error: Uncaught ArgumentCountError: blah(): Argument #1 ($foo) not passed in /in/cg4DA:5 Stack trace: #0 /in/cg4DA(3): blah(NULL, '1') #1 {main} thrown in /in/cg4DA on line 5
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:
107.81 ms | 406 KiB | 5 Q