3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function test($bar, $baz = null) { var_dump(func_get_args()); } } class Baz extends Foo { public static function test($bar, ...$args) { parent::test($bar, ...$args); } } Baz::test(1); Baz::test(2, 'hello');

preferences:
26.9 ms | 404 KiB | 5 Q