3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $hire = array( 'hiring' => array( (int) 1 => '10', (int) 2 => '5', (int) 3 => '8', (int) 4 => '15' ) ); $integerIDs = array_map('intval', implode(',', $hire['hiring'])); $hire['hiring'] = implode(',',$hire['hiring']); print_r($hire['hiring']); echo $integerIDs;
Output for 4.3.2 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_map(): Argument #2 should be an array in /in/uJ64l on line 11 10,5,8,15
Output for hhvm-3.10.0 - 3.13.2
Warning: array_map(): Argument #2 should be an array or collection 10,5,8,15
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/uJ64l on line 11 10,5,8,15