3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test($id = null){ var_dump(func_num_args()) . "<br/>"; } test(); test(null); test(null, 2);
Output for 4.3.0 - 7.1.0
int(0) int(1) int(2)