3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function cube($n, $m, $o) { return($n * $m * $o); } $a = array(1, 2, 3, 4, 5); $c = array(1, 2, 3, 4, 5); $d = array(1, 2, 3, 4, 5); $b = array_map("cube", $a, $c, $d); print_r($b);
based on 4k03U
Output for 4.3.0 - 7.2.0
Array ( [0] => 1 [1] => 8 [2] => 27 [3] => 64 [4] => 125 )