3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array(1,2,3,4); for($i = 0; $i <= count($array); $i++) { echo $array[$i].'<br />'; }
Output for 5.3.0 - 7.2.0
1<br />2<br />3<br />4<br /> Notice: Undefined offset: 4 in /in/pKuTZ on line 7 <br />
Output for 4.3.0 - 5.2.17
1<br />2<br />3<br />4<br /> Notice: Undefined offset: 4 in /in/pKuTZ on line 7 <br />