3v4l.org

run code in 300+ PHP versions simultaneously
<?php $scores = array( array(1, "allan", 90), array(2, "allan", 85), array(3, "mark", 100), array(4, "jason", 88), array(5, "allan", 92), array(6, "mark", 77), array(7, "mark", 88), array(8, "jason", 90) ); $scores = array_reduce($scores, function ($c, $v) { $name = $v[1]; if (isset($c[$name])) { $c[$name] += $v[2]; } else { $c[$name] = $v[2]; } return $c; }, array()); arsort($scores); echo key($scores);

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.5.10.0100.00816.66
8.5.00.0110.01120.06
8.4.150.0030.00014.05
8.4.140.0110.00917.51
8.4.130.0090.01018.94
8.4.120.0110.00924.10
8.4.110.0090.01118.63
8.4.100.0100.00918.84
8.4.90.0110.01020.32
8.4.80.0100.01118.75
8.4.70.0030.00518.02
8.4.60.0100.01020.47
8.4.50.0070.00317.86
8.4.40.0100.01017.91
8.4.30.0060.01318.92
8.4.20.0180.00320.53
8.4.10.0070.01319.30
8.3.280.0060.01420.17
8.3.270.0060.01216.69
8.3.260.0120.00716.84
8.3.250.0020.00618.93
8.3.240.0140.00417.36
8.3.230.0080.01016.49
8.3.220.0140.00418.79
8.3.210.0100.00818.44
8.3.200.0050.00316.62
8.3.190.0090.00917.22
8.3.180.0100.00916.61
8.3.170.0120.00617.14
8.3.160.0030.00718.49
8.3.150.0060.01220.71
8.3.140.0060.01216.89
8.3.130.0070.00316.57
8.3.120.0100.00320.77
8.3.110.0050.00520.94
8.3.100.0040.00418.71
8.3.90.0000.00826.77
8.3.80.0060.00318.55
8.3.70.0070.00716.63
8.3.60.0120.00918.43
8.3.50.0110.00816.43
8.3.40.0090.00618.79
8.3.30.0120.00318.80
8.3.20.0070.00420.82
8.3.10.0070.00020.34
8.3.00.0040.00423.70
8.2.290.0100.00820.33
8.2.280.0050.00220.30
8.2.270.0120.00617.44
8.2.260.0120.00419.11
8.2.250.0060.01316.64
8.2.240.0060.00317.26
8.2.230.0000.00922.58
8.2.220.0050.00524.06
8.2.210.0000.00826.77
8.2.200.0090.00018.29
8.2.190.0150.00416.63
8.2.180.0040.01125.92
8.2.170.0000.01522.96
8.2.160.0070.00722.18
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0050.00326.16
8.2.110.0180.00321.14
8.2.100.0120.00017.72
8.2.90.0030.00617.63
8.2.80.0100.00017.97
8.2.70.0040.00418.03
8.2.60.0000.00718.28
8.2.50.0040.00418.10
8.2.40.0000.00719.42
8.2.30.0000.00719.19
8.2.20.0040.00417.99
8.2.10.0050.00218.89
8.2.00.0060.00319.52
8.1.330.0130.00622.01
8.1.320.0100.01116.35
8.1.310.0110.00718.31
8.1.300.0060.00918.57
8.1.290.0070.00430.84
8.1.280.0110.00425.92
8.1.270.0090.00022.38
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00621.28
8.1.230.0040.00820.88
8.1.220.0030.00517.79
8.1.210.0040.00418.94
8.1.200.0060.00317.48
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0040.00418.54
8.1.160.0000.00718.84
8.1.150.0070.00018.84
8.1.140.0070.00018.89
8.1.130.0000.00719.10
8.1.120.0040.00617.50
8.1.110.0040.00417.51
8.1.100.0000.00817.38
8.1.90.0080.00017.43
8.1.80.0050.00317.37
8.1.70.0000.00817.34
8.1.60.0030.00617.58
8.1.50.0040.00417.50
8.1.40.0090.00017.50
8.1.30.0060.00317.54
8.1.20.0000.00817.60
8.1.10.0050.00317.45
8.1.00.0050.00517.50
8.0.300.0000.00720.07
8.0.290.0040.00416.63
8.0.280.0070.00018.35
8.0.270.0040.00416.75
8.0.260.0070.00016.72
8.0.250.0060.00016.81
8.0.240.0030.00316.95
8.0.230.0070.00016.77
8.0.220.0000.00916.75
8.0.210.0020.00516.80
8.0.200.0030.00316.93
8.0.190.0040.00416.91
8.0.180.0000.00716.82
8.0.170.0090.00016.81
8.0.160.0060.00316.95
8.0.150.0000.00816.87
8.0.140.0070.00316.73
8.0.130.0000.00713.34
8.0.120.0030.00516.74
8.0.110.0040.00416.86
8.0.100.0000.00716.84
8.0.90.0000.00816.86
8.0.80.0120.00316.89
8.0.70.0050.00216.91
8.0.60.0040.00416.82
8.0.50.0040.00416.83
8.0.30.0140.00817.08
8.0.20.0090.00917.38
8.0.10.0040.00417.05
8.0.00.0150.00616.78
7.4.330.0040.00015.55
7.4.320.0000.00616.63
7.4.300.0000.00616.53
7.4.290.0030.00316.57
7.4.280.0060.00316.50
7.4.270.0080.00016.50
7.4.260.0030.00316.53
7.4.250.0040.00416.57
7.4.240.0020.00616.63
7.4.230.0040.00416.69
7.4.220.0030.00516.40
7.4.210.0070.00916.48
7.4.200.0040.00416.38
7.4.160.0100.00916.42
7.4.140.0130.00917.86
7.4.130.0090.00916.57
7.4.120.0120.01216.55
7.4.110.0110.00716.37
7.4.100.0140.00316.34
7.4.90.0030.01716.48
7.4.80.0100.01019.39
7.4.70.0120.00516.48
7.4.60.0110.00516.40
7.4.50.0060.01016.25
7.4.40.0030.01416.29
7.4.00.0110.00714.69
7.3.330.0000.00513.29
7.3.320.0000.00513.19
7.3.310.0000.00716.31
7.3.300.0000.00716.30
7.3.290.0000.00716.35
7.3.280.0090.01316.36
7.3.260.0110.00916.49
7.3.240.0100.00716.41
7.3.230.0100.00916.33
7.3.210.0160.00616.43
7.3.200.0000.01616.31
7.3.190.0100.00616.31
7.3.180.0030.01316.33
7.3.170.0040.01416.50
7.3.160.0040.01216.66
7.3.120.0030.01214.80
7.3.110.0100.00314.77
7.3.100.0000.01114.78
7.3.90.0070.00714.48
7.3.80.0000.01115.01
7.3.70.0060.00614.82
7.3.60.0090.00614.93
7.3.50.0050.01014.68
7.3.40.0030.01014.79
7.3.30.0060.00814.77
7.3.20.0060.00915.58
7.3.10.0100.00515.61
7.3.00.0050.01015.61
7.2.330.0150.00416.79
7.2.320.0110.00616.44
7.2.310.0090.00916.45
7.2.300.0000.01716.86
7.2.290.0180.00016.70
7.2.240.0050.00515.07
7.2.230.0100.00415.28
7.2.220.0110.00315.10
7.2.210.0040.01115.25
7.2.200.0030.01415.06
7.2.190.0030.01315.00
7.2.180.0030.01215.01
7.2.170.0060.00914.92
7.2.160.0030.00914.86
7.2.150.0090.00815.96
7.2.140.0030.01515.79
7.2.130.0070.01015.94
7.2.120.0120.00516.04
7.2.110.0510.00515.88
7.2.100.0060.01416.08
7.2.90.0130.00415.72
7.2.80.0110.00816.02
7.2.70.0060.01115.81
7.2.60.0130.00716.10
7.2.50.0090.01116.01
7.2.40.0090.00415.92
7.2.30.0110.00516.01
7.2.20.0100.00715.95
7.2.10.0050.00815.87
7.2.00.0050.01016.10
7.1.330.0000.01515.61
7.1.320.0000.01315.92
7.1.310.0030.01015.62
7.1.300.0090.00615.49
7.1.290.0030.00715.60
7.1.280.0060.01014.89
7.1.270.0070.00914.69
7.1.260.0060.01514.74
7.1.250.0050.01114.80

preferences:
159.36 ms | 403 KiB | 5 Q