3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array('1/', '2/', '3/'); var_dump(array_map('trim', $array, '/'));
based on t2Eeo
Output for 4.3.2 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_map(): Argument #3 should be an array in /in/M4deA on line 4 NULL
Output for hhvm-3.12.0
Warning: array_map(): Argument #3 should be an array or collection array(3) { [0]=> string(1) "1" [1]=> string(2) "2/" [2]=> string(2) "3/" }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 4.3.1
Warning: array_map() [http://www.php.net/function.array-map]: Argument #3 should be an array in /in/M4deA on line 4 NULL