3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = array(); $x[] = 123; $x[] = 321; $x[] = 456; $x[] = 987; $x[] = 123; $x[] = 148; $x[] = 528; $x[] = 239; var_dump($x);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(8) { [0]=> int(123) [1]=> int(321) [2]=> int(456) [3]=> int(987) [4]=> int(123) [5]=> int(148) [6]=> int(528) [7]=> int(239) }