3v4l.org

run code in 300+ PHP versions simultaneously
<?php function some_lib(array $a = [], string $b) { echo $b . PHP_EOL; } some_lib( b: 'hello' );
Output for rfc.property-hooks
Deprecated: Optional parameter $a declared before required parameter $b is implicitly treated as a required parameter in /in/nHkd1 on line 2 Fatal error: Uncaught ArgumentCountError: some_lib(): Argument #1 ($a) not passed in /in/nHkd1:2 Stack trace: #0 /in/nHkd1(6): some_lib(NULL, 'hello') #1 {main} thrown in /in/nHkd1 on line 2
Process exited with code 255.
Output for git.master_jit, git.master
Deprecated: some_lib(): Optional parameter $a declared before required parameter $b is implicitly treated as a required parameter in /in/nHkd1 on line 2 Fatal error: Uncaught ArgumentCountError: some_lib(): Argument #1 ($a) not passed in /in/nHkd1:2 Stack trace: #0 /in/nHkd1(6): some_lib(NULL, 'hello') #1 {main} thrown in /in/nHkd1 on line 2
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:
84.68 ms | 2753 KiB | 4 Q