3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = array(); $foo[] = 1; $foo[] = 5; $foo[] = -1; var_dump($foo);
Output for 4.3.0 - 7.1.0
array(3) { [0]=> int(1) [1]=> int(5) [2]=> int(-1) }