3v4l.org

run code in 300+ 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); ?>

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
160.05 ms | 1470 KiB | 8 Q