3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array(3,5,"joseph","blah"); $arr = array_map('intval',"foo"); print_r($arr);
Output for 4.3.2 - 7.1.0
Warning: array_map(): Argument #2 should be an array in /in/SZBNK on line 3
Output for 4.3.0 - 4.3.1
Warning: array_map() [http://www.php.net/function.array-map]: Argument #2 should be an array in /in/SZBNK on line 3