3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array(' foo ', ' bar '); var_dump(array_map('trim', $arr)); array_walk('trim', $arr); var_dump($arr);
Output for 5.3.0 - 5.4.24
Fatal error: Only variables can be passed by reference in /in/IA9fV on line 7
Process exited with code 255.