3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $line = array(); for ( $i = 0, $max = 10; $i < $max; $line[$i++] = 0 ) ; var_dump($line);
based on 4vnoT
Output for 5.3.18 - 7.2.6
array(10) { [0]=> int(0) [1]=> int(0) [2]=> int(0) [3]=> int(0) [4]=> int(0) [5]=> int(0) [6]=> int(0) [7]=> int(0) [8]=> int(0) [9]=> int(0) }