3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface i { function foo($a, $b); } class x { function foo() {} } class y extends x implements i { function foo($a = 1) {} }
Output for git.master_jit, git.master
Fatal error: Declaration of y::foo($a = 1) must be compatible with i::foo($a, $b) in /in/1Wari on line 12 Stack trace: #0 {main}
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.65 ms | 770 KiB | 4 Q