3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $color = array('white', 'green', 'red'); foreach($color as $c) { echo sort($c); }
Output for 4.3.0 - 7.1.0
Warning: sort() expects parameter 1 to be array, string given in /in/hvQkq on line 5 Warning: sort() expects parameter 1 to be array, string given in /in/hvQkq on line 5 Warning: sort() expects parameter 1 to be array, string given in /in/hvQkq on line 5