3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $stuff = array( 'a','b','c' ); for ($i=0; $i <= 5; $i++) { echo $stuff[$i]; }
Output for 5.3.0 - 7.1.0
abc Notice: Undefined offset: 3 in /in/J4P46 on line 8 Notice: Undefined offset: 4 in /in/J4P46 on line 8 Notice: Undefined offset: 5 in /in/J4P46 on line 8
Output for 4.3.0 - 5.2.17
abc Notice: Undefined offset: 3 in /in/J4P46 on line 8 Notice: Undefined offset: 4 in /in/J4P46 on line 8 Notice: Undefined offset: 5 in /in/J4P46 on line 8