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)); } $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);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.180.0070.03912.40
5.4.170.0120.03812.40
5.4.160.0110.04112.39
5.4.150.0120.03912.39
5.4.140.0090.04212.08
5.4.130.0130.04312.06
5.4.120.0080.04212.03
5.4.110.0100.03912.02
5.4.100.0110.04212.02
5.4.90.0100.04512.02
5.4.80.0100.04212.02
5.4.70.0120.03612.02
5.4.60.0100.03912.02
5.4.50.0200.06012.02
5.4.40.0110.03912.00
5.4.30.0110.03912.00
5.4.20.0100.03911.99
5.4.10.0080.04112.00
5.4.00.0080.04111.49
5.3.270.0150.05312.72
5.3.260.0120.04112.72
5.3.250.0100.04212.72
5.3.240.0120.04212.72
5.3.230.0100.04312.71
5.3.220.0100.04112.68
5.3.210.0120.04112.68
5.3.200.0100.04012.68
5.3.190.0110.05612.68
5.3.180.0120.03812.68
5.3.170.0090.04312.67
5.3.160.0120.03812.67
5.3.150.0120.03912.68
5.3.140.0140.03612.66
5.3.130.0120.04112.66
5.3.120.0130.03812.66
5.3.110.0110.04112.65
5.3.100.0110.04012.12
5.3.90.0080.04312.10
5.3.80.0110.04012.09
5.3.70.0100.04012.09
5.3.60.0120.03812.08
5.3.50.0160.04912.02
5.3.40.0100.04112.02
5.3.30.0110.03711.99
5.3.20.0120.03611.77
5.3.10.0100.03811.73
5.3.00.0080.04111.71

preferences:
134.01 ms | 1399 KiB | 7 Q