3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mymap = ['z' => 'zombies', 'b' => 'babel fish', 'a' => 'angels', 'd' => 'dice']; ksort($mymap); foreach($mymap as $k => $v) { echo 'k:', $k, ' ', 'v:', $v, PHP_EOL; }

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)
8.1.70.0060.00317.47
8.1.60.0000.00917.42
8.1.50.0040.00417.45
8.1.40.0040.00417.39
8.1.30.0060.00317.61
8.1.20.0070.00017.66
8.1.10.0020.00517.40
8.1.00.0000.00717.36
8.0.200.0040.00416.92
8.0.190.0000.00816.95
8.0.180.0000.00816.96
8.0.170.0080.00016.80
8.0.160.0040.00416.87
8.0.150.0050.00216.80
8.0.140.0000.00716.73
8.0.130.0000.00713.27
8.0.120.0000.00816.81
8.0.110.0040.00416.89
8.0.100.0070.00016.93
8.0.90.0070.00016.75
8.0.80.0120.00616.87
8.0.70.0050.00316.88
8.0.60.0040.00417.00
8.0.50.0000.00716.75
8.0.30.0090.00917.06
8.0.20.0090.00917.40
8.0.10.0070.00016.99
8.0.00.0050.01416.86
7.4.300.0040.00416.38
7.4.290.0000.00716.50
7.4.280.0000.00716.43
7.4.270.0070.00316.54
7.4.260.0080.00016.50
7.4.250.0000.00716.45
7.4.240.0040.00416.42
7.4.230.0040.00416.69
7.4.220.0000.00716.30
7.4.210.0070.00916.54
7.4.200.0000.00716.59
7.4.160.0050.01216.46
7.4.140.0120.00917.86
7.4.130.0330.01016.44
7.4.120.0120.00616.42
7.4.110.0070.01016.46
7.4.100.0090.00916.49
7.4.90.0110.00716.54
7.4.80.0040.01219.39
7.4.70.0130.00316.23
7.4.60.0110.00716.35
7.4.50.0070.01016.57
7.4.40.0030.02016.55
7.4.00.0030.01015.01
7.3.330.0050.00013.13
7.3.320.0030.00313.05
7.3.310.0030.00316.32
7.3.300.0070.00016.11
7.3.290.0040.00416.26
7.3.280.0110.00716.20
7.3.260.0130.00816.39
7.3.240.0060.01116.37
7.3.230.0160.00016.65
7.3.210.0100.00716.30
7.3.200.0110.00716.19
7.3.190.0100.00516.45
7.3.180.0110.00616.59
7.3.170.0040.01216.42
7.3.160.0070.00916.25
7.2.330.0060.01216.39
7.2.320.0090.00916.42
7.2.310.0080.00816.39
7.2.300.0100.00716.42
7.2.290.0140.00316.38
7.2.90.2000.01714.73
7.2.80.1370.00714.48
7.2.70.2000.01014.96
7.2.60.2370.01015.05
7.2.50.1760.00715.14
7.2.40.1690.00714.99
7.2.30.1410.00714.86
7.2.20.2930.01014.91
7.2.10.1870.00715.16
7.2.00.1840.00615.08
7.1.210.2650.00313.68
7.1.200.3210.00713.60
7.1.190.1570.01013.89
7.1.180.1960.00713.76
7.1.170.2260.00713.93
7.1.160.2590.01313.74
7.1.150.2050.00014.06
7.1.140.2280.01013.88
7.1.130.2660.00713.93
7.1.120.1130.00313.75
7.1.110.1260.00313.84
7.1.100.1160.00013.96
7.1.90.2610.00313.82
7.1.80.1990.00313.59
7.1.70.1890.01013.46
7.1.60.2920.01031.76
7.1.50.5790.01031.79
7.1.40.2890.01631.61
7.1.30.4020.01331.65
7.1.20.3390.01331.69
7.1.10.3070.01614.01
7.1.00.1510.00713.70

preferences:
45.14 ms | 406 KiB | 5 Q