3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array("foo", "baa", "ahahaha"); unset($a[1]); //echo '<pre>'; print_r($a); for($i = 0; $i < count($a); $i++) { echo 'val at ', $i; echo " ", $a[$i], "\r\n"; }
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
val at 0 foo val at 1 Notice: Undefined offset: 1 in /in/dAJ7Q on line 10
Output for hhvm-3.10.0 - 3.12.0
val at 0 foo val at 1 Notice: Undefined index: 1 in /in/dAJ7Q on line 10
Output for 4.3.0 - 5.2.17
val at 0 foo val at 1 Notice: Undefined offset: 1 in /in/dAJ7Q on line 10