3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { public function go(iterable $x): void; } final class Test implements I { public function go(iterable|Generator $x): void { echo 'It\'s work!'; } } (new Test())->go([]); echo "\n"; (new Test())->go((static fn() => yield 1)());

This is an error 404

There are `0` results


preferences:
190.19 ms | 1015 KiB | 7 Q