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.0100.05318.95
5.4.260.0070.05318.59
5.4.250.0130.06018.87
5.4.240.0130.05018.77
5.4.230.0070.06718.73
5.4.220.0100.07018.73
5.4.210.0130.05718.91
5.4.200.0170.06718.87
5.4.190.0100.06318.69
5.4.180.0030.05318.68
5.4.170.0100.05718.88
5.4.160.0100.05018.89
5.4.150.0130.07718.72
5.4.140.0100.07316.59
5.4.130.0100.05316.54
5.4.120.0130.05316.38
5.4.110.0130.05016.44
5.4.100.0100.06716.47
5.4.90.0030.05316.57
5.4.80.0100.06316.40
5.4.70.0100.07316.35
5.4.60.0070.06016.28
5.4.50.0100.04716.41
5.4.40.0100.05016.47
5.4.30.0070.04716.24
5.4.20.0100.05316.40
5.4.10.0100.05016.41
5.4.00.0070.06315.85
5.3.280.0200.05714.77
5.3.270.0070.05714.50
5.3.260.0070.06014.57
5.3.250.0070.05314.67
5.3.240.0030.05314.82
5.3.230.0100.05014.76
5.3.220.0200.05714.57
5.3.210.0200.06314.65
5.3.200.0130.05014.47
5.3.190.0130.06714.60
5.3.180.0100.08014.47
5.3.170.0100.04714.57
5.3.160.0070.05014.55
5.3.150.0170.05314.58
5.3.140.0070.05314.69
5.3.130.0000.08314.68
5.3.120.0070.05314.77
5.3.110.0100.07314.63
5.3.100.0100.05314.04
5.3.90.0070.05013.84
5.3.80.0070.05013.99
5.3.70.0070.05313.93
5.3.60.0030.05314.09
5.3.50.0070.05013.85
5.3.40.0070.05013.92
5.3.30.0070.05314.13
5.3.20.0130.06313.66
5.3.10.0130.06013.73
5.3.00.0100.07013.71
5.2.170.0030.04311.25
5.2.160.0100.05011.29
5.2.150.0070.04711.14
5.2.140.0000.04711.29
5.2.130.0030.06010.93
5.2.120.0100.04010.93
5.2.110.0100.03311.11
5.2.100.0070.04011.10
5.2.90.0030.04311.03
5.2.80.0030.04011.09
5.2.70.0130.04011.09
5.2.60.0000.06011.07
5.2.50.0000.05311.04
5.2.40.0100.05011.01
5.2.30.0100.05010.89
5.2.20.0100.04710.95
5.2.10.0100.05011.07
5.2.00.0100.03710.55
5.1.60.0130.0239.93
5.1.50.0000.04310.22
5.1.40.0030.0509.75
5.1.30.0000.04010.09
5.1.20.0170.04010.52
5.1.10.0100.0339.92
5.1.00.0000.04010.12
5.0.50.0100.0308.61
5.0.40.0000.0338.26
5.0.30.0070.0538.18
5.0.20.0130.0178.22
5.0.10.0100.0338.08
5.0.00.0070.0478.07
4.4.90.0070.0177.49
4.4.80.0030.0307.49
4.4.70.0100.0237.49
4.4.60.0030.0237.49
4.4.50.0030.0237.49
4.4.40.0070.0407.49
4.4.30.0000.0337.49
4.4.20.0030.0307.49
4.4.10.0000.0337.49
4.4.00.0030.0407.49
4.3.110.0030.0237.49
4.3.100.0000.0277.49
4.3.90.0070.0277.49
4.3.80.0030.0307.49
4.3.70.0030.0307.49
4.3.60.0030.0207.49
4.3.50.0000.0277.49
4.3.40.0000.0337.49
4.3.30.0000.0237.49
4.3.20.0030.0237.49
4.3.10.0030.0307.49
4.3.00.0070.0237.74

preferences:
142.13 ms | 1398 KiB | 7 Q