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), array_fill(0, count($input), "")); print_r($c);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => bar [1] => foofoofoofoofoofoofoo [2] => name34234242224 )