3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $stuff = array( 'a','b','c' ); for ($i=0; $i <= 5; $i++) { if (isset($stuff[$i])) { echo $stuff[$i]; } else { echo 'no such key as ' . $i . ' <br>'; } }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
abcno such key as 3 <br>no such key as 4 <br>no such key as 5 <br>