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"; } $calling = 'my_function_'; for($i=0;$i<$length;$i++) { $calling = 'my_function_'.$i; $calling(); } ?>
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: length in /in/50s8D on line 17
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: length in /in/50s8D on line 17