3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $myList = ['a', 'b', 'c', 'd', 'e']; print("<pre>".print_r($myList, true)."</pre>"); foreach ($myList as $letters) { echo $letters . '<br>'; } echo '<br><br><br>'; foreach ($myList as $letters) { if ($letters !== 'a') { echo $letters . '<br>'; } } echo '<br><br><br>'; foreach ($myList as $letters) { if ($letters !== 'a' || $letters !== 'b') { echo $letters . '<br>'; } }