3v4l.org

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