3v4l.org

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