3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test_function(int $yyy = 2, int $xxx) { return $yyy * $xxx; } echo test_function(xxx:6);
Output for git.master_jit, git.master
Deprecated: test_function(): Optional parameter $yyy declared before required parameter $xxx is implicitly treated as a required parameter in /in/Nb6i6 on line 3 Fatal error: Uncaught ArgumentCountError: test_function(): Argument #1 ($yyy) not passed in /in/Nb6i6:3 Stack trace: #0 /in/Nb6i6(7): test_function(NULL, 6) #1 {main} thrown in /in/Nb6i6 on line 3
Process exited with code 255.
Output for rfc.property-hooks
Deprecated: Optional parameter $yyy declared before required parameter $xxx is implicitly treated as a required parameter in /in/Nb6i6 on line 3 Fatal error: Uncaught ArgumentCountError: test_function(): Argument #1 ($yyy) not passed in /in/Nb6i6:3 Stack trace: #0 /in/Nb6i6(7): test_function(NULL, 6) #1 {main} thrown in /in/Nb6i6 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.01 ms | 407 KiB | 5 Q