3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = []; $a[] = 2; $a[] = 1; $a[] = 2; var_dump($a);
based on BQrc8
Output for 5.6.38 - 7.3.0rc3
array(3) { [0]=> int(2) [1]=> int(1) [2]=> int(2) }