3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function a(){ echo $a; var_dump(func_num_args(4)); } a(5, 7);
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: a in /in/XsA40 on line 4 int(2)
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: a in /in/XsA40 on line 4 Warning: __SystemLib\func_num_arg_() expects exactly 0 parameters, 1 given in /in/XsA40 on line 7 NULL
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: a in /in/XsA40 on line 4 int(2)