3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { function bar($a, ...$b): void; } class Baz implements Foo { function bar($b, ...$c): void { var_dump([$b, $c]); } } call_user_func_array([(new Baz), 'bar'], ['a' => 123, 'b' => 456]);

preferences:
57.53 ms | 402 KiB | 5 Q