3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $color = array('white', 'green', 'red'); foreach($color as $c) { echo "$c".","; } $test = sort($color); echo "<ul>"; foreach($test as $t) { echo "<li>$t</li>"; } echo "</ul>";
based on uEBIH
Output for 4.3.0 - 4.3.10, 4.4.0 - 7.2.0
white,green,red,<ul> Warning: Invalid argument supplied for foreach() in /in/5eCQi on line 10 </ul>
Output for 4.3.11
white,green,red,<ul></ul>