3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test($param, $a, $b, $c) { print $param; } function func() { print 1; } test(func(), $var, 1, 1+1);
Output for 5.3.28 - 5.3.29, 5.4.20 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1 Notice: Undefined variable: var in /in/svX2g on line 10
Output for 5.0.4 - 5.3.27, 5.4.0 - 5.4.19
1 Notice: Undefined variable: var in /in/72VO2 on line 10
Output for 4.3.1 - 5.0.3
1 Notice: Undefined variable: var in /in/72VO2 on line 10
Output for 4.3.0
1 Notice: Undefined variable: var in /in/svX2g on line 10