3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface i { function foo(self $i); } class x implements i { //Declaration of x::foo(x $i) must be compatible with i::foo(i $i) function foo(self $i) {} // OK function foo(i $i) {} }
Output for 8.2.0 - 8.2.28, 8.3.0 - 8.3.22, 8.4.1 - 8.4.8
Fatal error: Cannot redeclare x::foo() in /in/DANG4 on line 12
Process exited with code 255.

preferences:
62.55 ms | 733 KiB | 3 Q