3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface I { function foo(int $i); } class X implements I { function foo(int $x) { echo $x; } } (new X)->foo(x: 1); (new X)->foo(i: 1); ?>
Output for 8.1.32 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.21, 8.5.0 - 8.5.6
1 Fatal error: Uncaught Error: Unknown named parameter $i in /in/k3Rhl:8 Stack trace: #0 {main} thrown in /in/k3Rhl on line 8
Process exited with code 255.

preferences:
68.34 ms | 864 KiB | 4 Q