3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array(array('aaaa'=>'vvvv','cccc'=>'ddddd')); $a = trim($array); var_dump($array);exit();
Output for 5.3.0 - 7.2.0
Warning: trim() expects parameter 1 to be string, array given in /in/JZNOa on line 3 array(1) { [0]=> array(2) { ["aaaa"]=> string(4) "vvvv" ["cccc"]=> string(5) "ddddd" } }
Output for 4.3.0 - 5.2.17
Notice: Array to string conversion in /in/JZNOa on line 3 array(1) { [0]=> array(2) { ["aaaa"]=> string(4) "vvvv" ["cccc"]=> string(5) "ddddd" } }