3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($num=0;$num<=8;++$num){ $array=array($num=>"Monday","Tuesday","Wednesday","Thursday","Friday"); print_r ($array);} ?>
based on PcQ2T
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Array ( [0] => Monday [1] => Tuesday [2] => Wednesday [3] => Thursday [4] => Friday ) Array ( [1] => Monday [2] => Tuesday [3] => Wednesday [4] => Thursday [5] => Friday ) Array ( [2] => Monday [3] => Tuesday [4] => Wednesday [5] => Thursday [6] => Friday ) Array ( [3] => Monday [4] => Tuesday [5] => Wednesday [6] => Thursday [7] => Friday ) Array ( [4] => Monday [5] => Tuesday [6] => Wednesday [7] => Thursday [8] => Friday ) Array ( [5] => Monday [6] => Tuesday [7] => Wednesday [8] => Thursday [9] => Friday ) Array ( [6] => Monday [7] => Tuesday [8] => Wednesday [9] => Thursday [10] => Friday ) Array ( [7] => Monday [8] => Tuesday [9] => Wednesday [10] => Thursday [11] => Friday ) Array ( [8] => Monday [9] => Tuesday [10] => Wednesday [11] => Thursday [12] => Friday )
Output for hhvm-3.10.0

Process exited with code 153.