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(); } ?><?php
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.34
Parse error: syntax error, unexpected end of file in /in/ugseO on line 1
Process exited with code 255.
Output for 4.3.0 - 5.4.32
0123<?php