3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = array( "foo" => "bar", "bar" => "foofoofoofoofoofoofoo", "name" => "name34234242224" ); $c = array_map("chunk_split", $input, 16); print_r($c);
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/kKYsc on line 10
Output for hhvm-3.10.0 - 3.12.0
Warning: array_map(): Argument #3 should be an array or collection Warning: Invalid argument: chunklen: (non-positive) Warning: Invalid argument: chunklen: (non-positive) Array ( [0] => bar [1] => [2] => )
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/kKYsc on line 10