3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var = '10, 24, 29, 32, 56'; $arr = array_map('intval', implode(', ', $var)); var_dump($arr);
Output for 5.2.5 - 5.6.21, 7.0.0 - 7.1.0
Warning: implode(): Invalid arguments passed in /in/BjGHN on line 3 Warning: array_map(): Argument #2 should be an array in /in/BjGHN on line 3 NULL
Output for hhvm-3.12.0
Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/BjGHN on line 3 Warning: array_map(): Argument #2 should be an array or collection NULL
Output for hhvm-3.10.0

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