3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $parent_ids = 4; $parent_ids = implode(',', array_map('intval', $parent_ids)); var_dump($parent_ids);
based on ICZvm
Output for 5.2.5 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_map(): Argument #2 should be an array in /in/AkPdc on line 3 Warning: implode(): Invalid arguments passed in /in/AkPdc on line 3 NULL
Output for hhvm-3.10.0 - 3.12.0
Warning: array_map(): Argument #2 should be an array or collection Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/AkPdc on line 3 NULL
Output for 4.3.2 - 5.2.4
Warning: array_map(): Argument #2 should be an array in /in/AkPdc on line 3 Warning: implode(): Bad arguments. in /in/AkPdc on line 3 NULL
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/AkPdc on line 3 Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/AkPdc on line 3 NULL