3v4l.org

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