3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo( string|null $first = null, string|null $second = null, mixed ...$others ){ var_dump(func_get_args()); } foo(others:1);

preferences:
12.91 ms | 483 KiB | 6 Q