3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array(0 => 'blue', 1 => 'red', 2 => 'green', 3 => 'red'); var_dump($array); echo $array[0];
Output for 4.3.0 - 7.1.0
array(4) { [0]=> string(4) "blue" [1]=> string(3) "red" [2]=> string(5) "green" [3]=> string(3) "red" } blue