3v4l.org

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

preferences:
54.89 ms | 402 KiB | 5 Q