3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a=array("", " ", 0, false, array(), "45"); $r=0; foreach($a as $i => $s) if (trim($s) == "") $r.=$i; echo $r;
based on 5XqYb
Output for 5.4.0 - 5.4.45
Warning: trim() expects parameter 1 to be string, array given in /in/4X3ct on line 4 00134