3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function my_function_1() { echo "1"; } function my_function_2() { echo "2"; } function my_function_3() { echo "3"; } for($i=0;$i<$length;$i++) { 'my_function_'.$i(); }
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
Notice: Undefined variable: length in /in/XbRQ3 on line 25
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: length in /in/XbRQ3 on line 25