3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $color = array('white', 'green', 'red'); foreach($color as $colors){ echo $colors. ", "; } foreach($color as $colors){ echo "<ul>"; echo "<li> $colors </li>"; echo "</ul>"; } ?>
based on qNSKh
Output for 4.3.0 - 7.1.0
white, green, red, <ul><li> white </li></ul><ul><li> green </li></ul><ul><li> red </li></ul>