3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface I1 { public static function foo($bar) : int; } interface I2 { public static function foo($bar) : string; } class A implements I1, I2 { // which interface should be inherited here? public static function foo($bar) : string {} }
Output for rfc.property-hooks, git.master, git.master_jit
Fatal error: Declaration of A::foo($bar): string must be compatible with I1::foo($bar): int in /in/5ILHi on line 13
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:
58.02 ms | 2023 KiB | 4 Q