3v4l.org

run code in 300+ PHP versions simultaneously
<?php function show_spanish($n, $m) { return ("Nomor $n di spanyol disebut dengan $m"); } function map_spanish($n, $m) { return (array($n => $m)); } $a = array(1, 2, 3, 4, 5); $b = array("uno", "dos", "tres", "cuatro", "cinco"); $c = array_map("show_spanish", $a, $b); print_r($c); $d = array_map("map_spanish", $a, $b); print_r($d);

preferences:
34.62 ms | 402 KiB | 5 Q