3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function my_function_0() { echo "0"; } 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<4;$i++) { $calling = 'my_function_'.$i; $calling(); } ?>
based on N05gH
Output for 4.3.0 - 7.1.0
0123