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, array_fill(0, count($input), 5)); print_r($c);
Output for 4.3.0 - 4.3.10, 4.4.0 - 5.0.3, 5.0.5 - 7.1.0
Array ( [0] => bar [1] => foofo ofoof oofoo foofo o [2] => name3 42342 42224 )
Output for 4.3.11, 5.0.4
Array ( [0] => bar [1] => foofo ofoof oofoo foofo o [2] => name3 42342 42224 )