3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $cars = array('volvo', 'BMW', 'Proton'); $spec = count($cars); for($X = 0; $X <= $spec; $X++) { echo $cars[$X]; echo '<br>'; } ?>
based on GKUOF
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0beta1
volvo<br>BMW<br>Proton<br> Notice: Undefined offset: 3 in /in/pngg4 on line 10 <br>
Output for hhvm-3.22.0
volvo<br>BMW<br>Proton<br> Notice: Undefined index: 3 in /in/pngg4 on line -1 <br>
Output for hhvm-3.18.5 - 3.21.3
volvo<br>BMW<br>Proton<br> Notice: Undefined index: 3 in /in/pngg4 on line 10 <br>