3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 20; $b = 9; $c = 6; $d = 40; $mA = array(); for($i=0;$i<30;$i++) { $mA[] = $a*$i; } print_r($mA);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => 0 [1] => 20 [2] => 40 [3] => 60 [4] => 80 [5] => 100 [6] => 120 [7] => 140 [8] => 160 [9] => 180 [10] => 200 [11] => 220 [12] => 240 [13] => 260 [14] => 280 [15] => 300 [16] => 320 [17] => 340 [18] => 360 [19] => 380 [20] => 400 [21] => 420 [22] => 440 [23] => 460 [24] => 480 [25] => 500 [26] => 520 [27] => 540 [28] => 560 [29] => 580 )