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) ); foreach($scores as $e) { if (!isset($res[$e[1]])) $res[$e[1]] = 0; $res[$e[1]] += $e[2]; } print_r(array_keys($res, max($res)));

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.4.120.0040.00524.04
8.4.110.0110.00917.79
8.4.100.0100.01018.89
8.4.90.0140.00522.31
8.4.80.0100.00818.62
8.4.70.0050.00318.07
8.4.60.0130.01118.91
8.4.50.0060.00417.76
8.4.40.0130.00717.61
8.4.30.0130.00618.45
8.4.20.0140.00720.75
8.4.10.0100.01019.58
8.3.250.0090.00918.86
8.3.240.0110.00817.02
8.3.230.0110.00816.38
8.3.220.0100.00818.84
8.3.210.0100.00916.56
8.3.200.0040.00516.71
8.3.190.0090.00619.08
8.3.180.0120.00716.60
8.3.170.0140.00420.99
8.3.160.0100.01018.61
8.3.150.0140.00418.79
8.3.140.0110.00716.54
8.3.130.0050.00318.34
8.3.120.0090.00020.80
8.3.110.0030.00620.94
8.3.100.0110.00824.06
8.3.90.0100.01026.77
8.3.80.0040.00418.56
8.3.70.0040.01116.58
8.3.60.0150.00418.68
8.3.50.0090.00916.62
8.3.40.0090.00618.88
8.3.30.0080.00818.80
8.3.20.0040.00420.69
8.3.10.0000.00720.21
8.3.00.0000.00823.43
8.2.290.0140.00520.59
8.2.280.0090.01220.09
8.2.270.0030.01317.34
8.2.260.0070.01018.42
8.2.250.0080.00016.48
8.2.240.0030.00517.49
8.2.230.0050.00322.58
8.2.220.0000.01037.54
8.2.210.0000.00826.77
8.2.200.0090.00616.75
8.2.190.0110.00718.54
8.2.180.0180.00725.92
8.2.170.0120.00322.96
8.2.160.0100.00321.91
8.2.150.0070.00324.18
8.2.140.0050.00524.66
8.2.130.0000.00826.16
8.2.120.0000.00820.98
8.2.110.0090.00022.14
8.2.100.0080.00418.03
8.2.90.0040.00418.03
8.2.80.0000.00819.13
8.2.70.0030.00517.91
8.2.60.0000.00718.16
8.2.50.0080.00018.10
8.2.40.0050.00219.28
8.2.30.0000.00819.33
8.2.20.0070.00018.06
8.2.10.0050.00318.91
8.2.00.0050.00219.42
8.1.330.0120.00621.98
8.1.320.0070.01216.23
8.1.310.0090.00018.42
8.1.300.0070.00319.72
8.1.290.0100.00330.84
8.1.280.0030.01025.92
8.1.270.0040.00422.45
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00722.59
8.1.230.0030.00920.79
8.1.220.0060.00317.78
8.1.210.0050.00320.50
8.1.200.0030.00617.48
8.1.190.0080.00017.38
8.1.180.0050.00518.10
8.1.170.0060.00318.61
8.1.160.0040.00418.82
8.1.150.0050.00218.92
8.1.140.0040.00418.89
8.1.130.0040.00420.15
8.1.120.0040.00717.42
8.1.110.0000.00817.47
8.1.100.0000.00717.48
8.1.90.0000.00817.36
8.1.80.0000.00717.38
8.1.70.0030.00317.36
8.1.60.0050.00317.56
8.1.50.0030.00517.51
8.1.40.0040.00417.54
8.1.30.0050.00317.66
8.1.20.0030.00617.48
8.1.10.0080.00017.62
8.1.00.0000.00917.46
8.0.300.0000.00720.20
8.0.290.0040.00416.63
8.0.280.0030.00318.46
8.0.270.0030.00317.21
8.0.260.0070.00018.41
8.0.250.0070.00016.93
8.0.240.0030.00316.98
8.0.230.0070.00017.00
8.0.220.0030.00716.86
8.0.210.0000.00716.94
8.0.200.0000.00716.82
8.0.190.0050.00216.96
8.0.180.0050.00216.89
8.0.170.0080.00416.87
8.0.160.0040.00416.96
8.0.150.0040.00416.80
8.0.140.0060.00616.84
8.0.130.0060.00013.20
8.0.120.0040.00416.85
8.0.110.0040.00416.92
8.0.100.0080.00016.89
8.0.90.0000.00817.01
8.0.80.0060.00916.89
8.0.70.0030.00416.95
8.0.60.0070.00016.94
8.0.50.0000.00716.96
8.0.30.0110.00617.14
8.0.20.0140.00616.79
8.0.10.0030.00317.13
8.0.00.0150.00716.75
7.4.330.0040.00015.55
7.4.320.0060.00016.63
7.4.300.0000.00616.65
7.4.290.0050.00216.61
7.4.280.0030.00616.51
7.4.270.0030.00316.44
7.4.260.0030.00316.45
7.4.250.0080.00016.47
7.4.240.0000.00716.51
7.4.230.0030.00516.66
7.4.220.0040.00416.41
7.4.210.0070.01016.59
7.4.200.0040.00416.42
7.4.160.0130.00616.42
7.4.140.0090.01217.86
7.4.130.0150.00916.63
7.4.120.0080.01116.55
7.4.110.0100.00716.66
7.4.100.0110.01116.64
7.4.90.0120.00916.68
7.4.80.0080.00819.39
7.4.70.0070.01016.60
7.4.60.0090.00616.42
7.4.50.0090.00616.37
7.4.40.0120.00616.36
7.4.10.0090.00914.96
7.4.00.0070.01214.95
7.3.330.0030.00313.25
7.3.320.0030.00313.16
7.3.310.0040.00416.21
7.3.300.0030.00316.36
7.3.290.0050.00216.16
7.3.280.0060.01016.32
7.3.260.0140.00816.47
7.3.230.0110.00716.30
7.3.210.0100.00716.59
7.3.200.0130.00416.35
7.3.190.0040.01216.48
7.3.180.0120.00316.30
7.3.170.0100.01016.52
7.3.160.0080.00816.44
7.3.130.0090.00914.89
7.3.120.0090.00815.05
7.3.110.0050.01214.79
7.3.100.0090.00815.05
7.3.90.0070.01014.78
7.3.80.0080.00514.92
7.3.70.0060.01014.86
7.3.60.0040.00614.65
7.3.50.0060.00814.76
7.3.40.0060.00714.73
7.3.30.0060.00714.68
7.3.20.0040.00916.11
7.3.10.0080.00916.05
7.3.00.0080.00615.92
7.2.330.0130.00316.74
7.2.320.0060.01216.85
7.2.310.0100.00716.43
7.2.300.0100.00616.78
7.2.290.0060.01016.71
7.2.260.0040.01515.26
7.2.250.0070.01115.03
7.2.240.0030.01414.92
7.2.230.0050.01215.08
7.2.220.0020.01315.14
7.2.210.0100.00614.92
7.2.200.0050.01014.95
7.2.190.0050.00815.00
7.2.180.0070.00514.94
7.2.170.0030.00915.04
7.2.160.0050.01114.88
7.2.150.0080.01016.21
7.2.140.0070.00816.34
7.2.130.0080.00716.12
7.2.120.0090.00715.99
7.2.110.0070.00516.11
7.2.100.0120.00616.08
7.2.90.0070.00816.24
7.2.80.0040.01016.31
7.2.70.0380.00516.10
7.2.60.0090.00916.32
7.2.50.0090.01016.15
7.2.40.0110.00516.22
7.2.30.0090.00716.31
7.2.20.0060.01016.39
7.2.10.0090.01016.30
7.2.00.0070.00816.24
7.1.330.0090.00515.73
7.1.320.0100.00415.67
7.1.310.0060.00815.79
7.1.300.0080.00815.77
7.1.290.0060.00515.81
7.1.280.0060.01015.17
7.1.270.0080.00615.15
7.1.260.0090.00415.00
7.1.250.0100.00715.12
7.1.240.0000.01315.84
7.1.230.0000.01515.91
7.1.220.0080.00415.93
7.1.210.0060.00615.55
7.1.200.0110.00415.71
7.1.190.0140.00015.87
7.1.180.0060.00715.79
7.1.170.0070.00715.82
7.1.160.0060.01015.79
7.1.150.0100.00315.91
7.1.140.0000.01715.84
7.1.130.0000.01315.83
7.1.120.0000.01215.71
7.1.110.0070.00715.97
7.1.100.0030.00915.62
7.1.90.0000.01315.80
7.1.80.0090.00315.88
7.1.70.0040.00716.02
7.1.60.0050.00315.92
7.1.50.0030.00915.85
7.1.40.0040.00815.89
7.1.30.0030.01015.80
7.1.20.0000.01515.83
7.1.10.0070.00315.77
7.1.00.0070.00315.98

preferences:
27.59 ms | 403 KiB | 5 Q