3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo (?int $foo = null, ?int $bar = null): void { var_dump(func_num_args()); } foo(bar: 5);

preferences:
30.53 ms | 404 KiB | 5 Q