3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function show_spanish($n, $m) { return ("Nomor $n di spanyol disebut dengan $m"); } function map_spanish($n, $m) { return (array($n => $m)); } $off == array( array("1" => "uno"), array("2" => "dos"), array("3" => "tres"), array("4" => "cuatro"), array("5" => "cinco") ); $c = array_map("show_spanish", $off); print_r($c); $d = array_map("map_spanish", $off); print_r($d);
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: off in /in/bTJPn on line 13 Notice: Undefined variable: off in /in/bTJPn on line 20 Warning: array_map(): Argument #2 should be an array in /in/bTJPn on line 20 Notice: Undefined variable: off in /in/bTJPn on line 23 Warning: array_map(): Argument #2 should be an array in /in/bTJPn on line 23
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: off in /in/bTJPn on line 18 Notice: Undefined variable: off in /in/bTJPn on line 20 Warning: array_map(): Argument #2 should be an array or collection Notice: Undefined variable: off in /in/bTJPn on line 23 Warning: array_map(): Argument #2 should be an array or collection
Output for 5.1.0 - 5.6.28
Notice: Undefined variable: off in /in/bTJPn on line 18 Notice: Undefined variable: off in /in/bTJPn on line 20 Warning: array_map(): Argument #2 should be an array in /in/bTJPn on line 20 Notice: Undefined variable: off in /in/bTJPn on line 23 Warning: array_map(): Argument #2 should be an array in /in/bTJPn on line 23
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: off in /in/bTJPn on line 12 Notice: Undefined variable: off in /in/bTJPn on line 20 Warning: array_map(): Argument #2 should be an array in /in/bTJPn on line 20 Notice: Undefined variable: off in /in/bTJPn on line 23 Warning: array_map(): Argument #2 should be an array in /in/bTJPn on line 23
Output for 4.3.2 - 5.0.3
Notice: Undefined variable: off in /in/bTJPn on line 12 Notice: Undefined variable: off in /in/bTJPn on line 20 Warning: array_map(): Argument #2 should be an array in /in/bTJPn on line 20 Notice: Undefined variable: off in /in/bTJPn on line 23 Warning: array_map(): Argument #2 should be an array in /in/bTJPn on line 23
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: off in /in/bTJPn on line 12 Notice: Undefined variable: off in /in/bTJPn on line 20 Warning: array_map() [http://www.php.net/function.array-map]: Argument #2 should be an array in /in/bTJPn on line 20 Notice: Undefined variable: off in /in/bTJPn on line 23 Warning: array_map() [http://www.php.net/function.array-map]: Argument #2 should be an array in /in/bTJPn on line 23