3v4l.org

run code in 200+ 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(); } ?>
Output for 4.3.0 - 7.2.0
0123