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);
Output for 8.3.5 - 8.3.28, 8.4.9 - 8.4.15, 8.5.0
int(2)

preferences:
50.91 ms | 406 KiB | 5 Q