3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $months = array('jan','feb', 'march', 'may', 'april'); // echo $months[3]; print_r ($months); array_push($months, 'july'); print_r($months); $months[]='december'; print_r($months); ?>
based on O5RqX
Output for 4.3.0 - 7.2.0
Array ( [0] => jan [1] => feb [2] => march [3] => may [4] => april ) Array ( [0] => jan [1] => feb [2] => march [3] => may [4] => april [5] => july ) Array ( [0] => jan [1] => feb [2] => march [3] => may [4] => april [5] => july [6] => december )