3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function Test($x=1,$x=1) { var_dump(func_get_arg()); var_dump(func_get_arg()); } echo Test();
based on 7RFb8
Output for hhvm-3.10.0 - 3.12.0
Warning: __SystemLib\func_get_arg_sl() expects exactly 1 parameter, 0 given in /in/KbgYQ on line 3 NULL Warning: __SystemLib\func_get_arg_sl() expects exactly 1 parameter, 0 given in /in/KbgYQ on line 4 NULL
Output for 5.3.0 - 5.6.28
Warning: func_get_arg() expects exactly 1 parameter, 0 given in /in/KbgYQ on line 3 NULL Warning: func_get_arg() expects exactly 1 parameter, 0 given in /in/KbgYQ on line 4 NULL
Output for 4.3.0 - 5.2.17
bool(false) bool(false)