3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $months = array('jan', 'feb', 'mar', 'apr', 'may'); array_push ($months, 'june'); $months[] = 'july'; print_r($months); echo $month;
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => jan [1] => feb [2] => mar [3] => apr [4] => may [5] => june [6] => july ) Notice: Undefined variable: month in /in/uLq1c on line 6
Output for 4.3.0 - 5.0.3
Array ( [0] => jan [1] => feb [2] => mar [3] => apr [4] => may [5] => june [6] => july ) Notice: Undefined variable: month in /in/uLq1c on line 6