3v4l.org

run code in 500+ 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(...$args) { parent::test(...$args); } } Baz::test(); Baz::test('hello');

preferences:
45.94 ms | 2403 KiB | 5 Q