3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array('test1'=>'a','test2'=>'b'); echo array_reduce($arr1,function(e){return 1});

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.270.0070.07718.89
5.4.260.0170.04718.83
5.4.250.0070.05718.71
5.4.240.0170.04719.02
5.4.230.0070.06018.70
5.4.220.0030.06018.93
5.4.210.0070.06018.91
5.4.200.0200.04018.92
5.4.190.0170.04718.82
5.4.180.0030.06018.70
5.4.170.0100.05718.59
5.4.160.0170.05318.63
5.4.150.0130.07018.80
5.4.140.0230.06016.47
5.4.130.0200.06016.26
5.4.120.0070.05716.43
5.4.110.0200.04316.62
5.4.100.0130.06016.55
5.4.90.0200.07016.50
5.4.80.0030.05316.47
5.4.70.0200.06316.37
5.4.60.0070.06316.46
5.4.50.0030.05316.50
5.4.40.0030.05716.54
5.4.30.0100.05016.33
5.4.20.0100.06316.39
5.4.10.0270.04016.52
5.4.00.0170.05015.75
5.3.280.0100.06014.58
5.3.270.0130.06314.57
5.3.260.0100.06714.67
5.3.250.0100.07014.67
5.3.240.0130.07014.59
5.3.230.0030.06314.57
5.3.220.0100.06014.55
5.3.210.0030.07014.64
5.3.200.0070.07314.47
5.3.190.0170.04714.47
5.3.180.0070.08014.71
5.3.170.0070.07014.72
5.3.160.0170.05314.53
5.3.150.0100.05714.55
5.3.140.0070.07714.63
5.3.130.0230.07014.56
5.3.120.0100.05314.61
5.3.110.0130.05714.61
5.3.100.0030.06014.17
5.3.90.0130.06314.23
5.3.80.0170.05714.04
5.3.70.0200.06014.15
5.3.60.0130.06013.96
5.3.50.0070.07314.03
5.3.40.0130.05713.91
5.3.30.0130.07013.90
5.3.20.0070.05013.91
5.3.10.0070.05313.69
5.3.00.0030.05713.72
5.2.170.0070.05311.07
5.2.160.0100.04011.05
5.2.150.0100.04311.04
5.2.140.0030.06310.98
5.2.130.0170.03311.02
5.2.120.0100.03710.98
5.2.110.0070.05310.93
5.2.100.0100.03711.03
5.2.90.0030.05011.11
5.2.80.0130.05711.10
5.2.70.0030.04711.00
5.2.60.0070.04310.81
5.2.50.0070.04011.01
5.2.40.0070.04310.99
5.2.30.0100.04010.97
5.2.20.0070.05710.79
5.2.10.0030.04010.70
5.2.00.0100.05710.78
5.1.60.0100.0439.77
5.1.50.0070.0379.90
5.1.40.0170.02710.21
5.1.30.0070.03710.49
5.1.20.0070.04310.43
5.1.10.0030.05010.09
5.1.00.0070.05010.23
5.0.50.0070.0278.50
5.0.40.0100.0278.46
5.0.30.0030.0508.28
5.0.20.0070.0338.25
5.0.10.0100.0208.14
5.0.00.0000.0477.99
4.4.90.0070.0307.48
4.4.80.0030.0207.48
4.4.70.0030.0277.48
4.4.60.0000.0277.48
4.4.50.0000.0277.48
4.4.40.0100.0307.48
4.4.30.0030.0207.48
4.4.20.0030.0307.48
4.4.10.0100.0137.48
4.4.00.0000.0477.48
4.3.110.0030.0237.48
4.3.100.0030.0307.48
4.3.90.0000.0277.48
4.3.80.0030.0377.48
4.3.70.0100.0207.48
4.3.60.0000.0237.48
4.3.50.0070.0207.48
4.3.40.0030.0337.48
4.3.30.0070.0277.48
4.3.20.0030.0207.48
4.3.10.0030.0207.48
4.3.00.0100.0237.74

preferences:
142.06 ms | 1394 KiB | 7 Q