3v4l.org

run code in 300+ PHP versions simultaneously
<?php $scores = array( "Mike" => array(04, 03, 00, 07, 04, 07, 00, 01, 00, 07, 04), "Kyle" => array(07, 01, 00, 03, 04, 01, 00, 07, 03, 04, 04), "Johnny" => array(07, 07, 00, 03, 00, 04, 00, 01, 01, 04, 03), "Will" => array(03, 04, 00, 03, 04, 07, 00, 01, 00, 07, 04), "Vasques" => array(03, 01, 00, 03, 04, 07, 00, 01, 00, 07, 07) ); function cmp($a, $b) { return array_sum($b) - array_sum($a); } usort($scores, "cmp"); print_r($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.3.60.0130.00716.50
8.3.50.0120.00922.04
8.3.40.0090.00618.51
8.3.30.0080.00619.15
8.3.20.0040.00420.34
8.3.10.0040.00423.61
8.3.00.0080.00019.13
8.2.180.0070.01418.66
8.2.170.0120.00922.96
8.2.160.0060.00920.43
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00022.08
8.2.110.0070.00319.18
8.2.100.0080.00617.78
8.2.90.0090.00019.09
8.2.80.0040.00417.97
8.2.70.0030.00517.48
8.2.60.0060.00317.80
8.2.50.0030.00518.10
8.2.40.0040.00419.75
8.2.30.0100.00018.00
8.2.20.0070.00017.73
8.2.10.0090.00017.95
8.2.00.0000.00717.59
8.1.280.0090.00625.92
8.1.270.0080.00024.04
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.62
8.1.230.0040.00717.83
8.1.220.0000.00917.77
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0030.00617.22
8.1.180.0040.00418.10
8.1.170.0040.00418.25
8.1.160.0000.00722.01
8.1.150.0040.00418.59
8.1.140.0040.00417.40
8.1.130.0030.00317.82
8.1.120.0070.00017.41
8.1.110.0040.00417.31
8.1.100.0040.00417.48
8.1.90.0080.00017.36
8.1.80.0040.00417.30
8.1.70.0000.00717.34
8.1.60.0040.00417.54
8.1.50.0030.00717.35
8.1.40.0040.00417.43
8.1.30.0060.00317.52
8.1.20.0050.00317.48
8.1.10.0060.00317.39
8.1.00.0080.00017.48
8.0.300.0070.00018.77
8.0.290.0030.00516.75
8.0.280.0030.00318.29
8.0.270.0030.00317.14
8.0.260.0000.00717.16
8.0.250.0070.00016.96
8.0.240.0030.00316.90
8.0.230.0070.00016.87
8.0.220.0070.00016.90
8.0.210.0030.00316.96
8.0.200.0000.00716.93
8.0.190.0000.00716.86
8.0.180.0000.00816.90
8.0.170.0050.00316.88
8.0.160.0040.00416.84
8.0.150.0030.00416.80
8.0.140.0070.00016.80
8.0.130.0000.00613.23
8.0.120.0050.00316.91
8.0.110.0040.00416.73
8.0.100.0080.00016.94
8.0.90.0060.00316.74
8.0.80.0090.00716.73
8.0.70.0000.00816.84
8.0.60.0070.00016.84
8.0.50.0080.00016.70
8.0.30.0120.00817.03
8.0.20.0110.00717.40
8.0.10.0070.00016.90
8.0.00.0060.01316.66
7.4.330.0000.00515.00
7.4.320.0030.00316.39
7.4.300.0060.00016.43
7.4.290.0000.00716.59
7.4.280.0050.00316.53
7.4.270.0040.00416.39
7.4.260.0030.00316.55
7.4.250.0040.00416.31
7.4.240.0010.00616.39
7.4.230.0070.00016.62
7.4.220.0090.00916.55
7.4.210.0060.00716.46
7.4.200.0030.00316.66
7.4.190.0070.00016.57
7.4.160.0160.00616.25
7.4.150.0090.00917.40
7.4.140.0080.01217.86
7.4.130.0120.00416.55
7.4.120.0160.00616.44
7.4.110.0100.00716.49
7.4.100.0070.01416.48
7.4.90.0070.01016.43
7.4.80.0060.01219.39
7.4.70.0080.00916.43
7.4.60.0030.01616.58
7.4.50.0000.00816.28
7.4.40.0070.01016.21
7.4.30.0130.00716.52
7.4.00.0070.01015.06
7.3.330.0030.00313.20
7.3.320.0000.00513.24
7.3.310.0000.00716.23
7.3.300.0040.00416.22
7.3.290.0110.00316.23
7.3.280.0060.01316.21
7.3.270.0120.01217.40
7.3.260.0130.00316.30
7.3.250.0100.01016.37
7.3.240.0030.01316.52
7.3.230.0140.00716.49
7.3.210.0080.00916.26
7.3.200.0140.00319.39
7.3.190.0100.01016.39
7.3.180.0030.01316.19
7.3.170.0100.00716.27
7.3.160.0060.00916.37
7.3.120.0130.00314.74
7.3.110.0030.01014.56
7.3.100.0030.01414.57
7.3.90.0030.01014.37
7.3.80.0070.00314.75
7.3.70.0060.00614.94
7.3.60.0040.00814.42
7.3.50.0070.00714.36
7.3.40.0040.00814.69
7.3.30.0070.00714.83
7.3.20.0040.00816.50
7.3.10.0110.00416.53
7.3.00.0090.00616.60
7.2.330.0030.01316.46
7.2.320.0090.00916.34
7.2.310.0060.01116.31
7.2.300.0040.01916.54
7.2.290.0120.00816.63
7.2.240.0070.01014.42
7.2.230.0070.01014.96
7.2.220.0070.00414.95
7.2.210.0070.01014.81
7.2.200.0100.00715.00
7.2.190.0090.00614.62
7.2.180.0000.01814.84
7.2.170.0060.00915.00
7.2.160.0070.01014.95
7.2.150.0070.00716.40
7.2.140.0040.00716.80
7.2.130.0090.00616.79
7.2.120.0060.00916.72
7.2.110.0090.00616.87
7.2.100.0110.00417.00
7.2.90.0120.00016.76
7.2.80.0030.00716.44
7.2.70.0040.01116.66
7.2.60.0060.00916.86
7.2.50.0000.01117.02
7.2.40.0030.01016.38
7.2.30.0040.00416.59
7.2.20.0090.00016.77
7.2.10.0070.00716.75
7.2.00.0060.00518.03
7.1.330.0040.01115.47
7.1.320.0140.00015.41
7.1.310.0100.00315.92
7.1.300.0080.00315.73
7.1.290.0070.01015.75
7.1.280.0060.01015.71
7.1.270.0100.00315.64
7.1.260.0070.00715.80
7.1.250.0090.00615.55
7.1.100.0060.00618.11
7.1.70.0000.01117.06
7.1.60.0140.01019.46
7.1.50.0060.00916.79
7.1.00.0200.05722.29
7.0.200.0070.00016.70
7.0.140.0070.07322.18
7.0.100.0270.08719.95
7.0.90.0330.05719.91
7.0.80.0330.04320.01
7.0.70.0400.08020.03
7.0.60.0470.08019.79
7.0.50.0500.07720.39
7.0.40.0100.07720.07
7.0.30.0100.07020.08
7.0.20.0070.08320.07
7.0.10.0100.07320.17
7.0.00.0170.06020.05
5.6.280.0030.07720.82
5.6.250.0030.09020.58
5.6.240.0100.04720.66
5.6.230.0100.07020.73
5.6.220.0100.07320.70
5.6.210.0070.08320.69
5.6.200.0200.07321.05
5.6.190.0030.06321.08
5.6.180.0100.07721.05
5.6.170.0100.08021.12
5.6.160.0130.08021.13
5.6.150.0100.08021.02
5.6.140.0130.06021.10
5.6.130.0100.07721.04
5.6.120.0100.08721.04
5.6.110.0170.06721.14
5.6.100.0030.05720.95
5.6.90.0030.08721.03
5.6.80.0100.07720.45
5.6.70.0130.04020.34
5.6.60.0170.07020.44
5.6.50.0170.07320.43
5.6.40.0070.08320.41
5.6.30.0100.04320.44
5.6.20.0200.06020.42
5.6.10.0170.07320.50
5.6.00.0200.05320.43
5.5.380.0100.08720.44
5.5.370.0170.06720.36
5.5.360.0070.08020.35
5.5.350.0000.04720.47
5.5.340.0130.07720.90
5.5.330.0030.07020.89
5.5.320.0070.04320.75
5.5.310.0100.07320.77
5.5.300.0070.08320.92
5.5.290.0030.08020.91
5.5.280.0070.05020.79
5.5.270.0070.09020.93
5.5.260.0130.08020.80
5.5.250.0070.08320.71
5.5.240.0170.06720.14
5.5.230.0170.05020.19
5.5.220.0030.08020.16
5.5.210.0000.08320.22
5.5.200.0130.06720.18
5.5.190.0200.06720.29
5.5.180.0100.06720.23
5.5.160.0070.08320.27
5.5.150.0130.07020.12
5.5.140.0100.08020.27
5.5.130.0070.07320.25
5.5.120.0200.06720.14
5.5.110.0030.07720.27
5.5.100.0030.07720.19
5.5.90.0070.09020.17
5.5.80.0030.08020.09
5.5.70.0200.07020.10
5.5.60.0230.05720.04
5.5.50.0070.07319.98
5.5.40.0170.06020.10
5.5.30.0170.07320.13
5.5.20.0170.04320.15
5.5.10.0100.07720.05
5.5.00.0100.07320.08
5.4.450.0130.07319.37
5.4.440.0070.08019.27
5.4.430.0030.06719.48
5.4.420.0170.06319.45
5.4.410.0100.07019.23
5.4.400.0100.07318.90
5.4.390.0200.07319.04
5.4.380.0200.04318.93
5.4.370.0100.07319.04
5.4.360.0030.07318.87
5.4.350.0070.07319.13
5.4.340.0130.07718.95
5.4.320.0000.08719.13
5.4.310.0130.07019.09
5.4.300.0100.07719.22
5.4.290.0100.07019.05
5.4.280.0030.08019.05
5.4.270.0100.07019.15
5.4.260.0070.07019.23
5.4.250.0200.04319.04
5.4.240.0100.07019.04
5.4.230.0030.07319.02
5.4.220.0070.08718.89
5.4.210.0100.07718.89
5.4.200.0070.07319.12
5.4.190.0070.08019.12
5.4.180.0100.07019.12
5.4.170.0070.08319.14
5.4.160.0170.06718.83
5.4.150.0030.08719.11
5.4.140.0100.06716.36
5.4.130.0100.07716.45
5.4.120.0170.06016.28
5.4.110.0070.07316.36
5.4.100.0070.04716.34
5.4.90.0100.07316.55
5.4.80.0130.07016.34
5.4.70.0030.07716.31
5.4.60.0070.08016.41
5.4.50.0130.06716.37
5.4.40.0170.07016.42
5.4.30.0130.07316.47
5.4.20.0070.06716.48
5.4.10.0100.06716.47
5.4.00.0070.06315.65
5.3.290.0100.07714.78
5.3.280.0000.08714.72
5.3.270.0070.07714.61
5.3.260.0000.08014.55
5.3.250.0070.08014.61
5.3.240.0070.07714.64
5.3.230.0030.07714.68
5.3.220.0100.07314.51
5.3.210.0070.05714.56
5.3.200.0200.06314.56
5.3.190.0000.07314.55
5.3.180.0130.06714.72
5.3.170.0030.07714.59
5.3.160.0030.06314.51
5.3.150.0070.07314.69
5.3.140.0100.07314.55
5.3.130.0070.08014.66
5.3.120.0000.08314.66
5.3.110.0130.07314.55
5.3.100.0130.06714.04
5.3.90.0030.07714.14
5.3.80.0030.08314.02
5.3.70.0200.03714.04
5.3.60.0030.08014.07
5.3.50.0130.06314.09
5.3.40.0070.07313.99
5.3.30.0070.05313.90
5.3.20.0170.07013.81
5.3.10.0030.04713.73
5.3.00.0030.07713.79
5.2.170.0030.06311.22
5.2.160.0130.05711.16
5.2.150.0030.06311.19
5.2.140.0030.06711.26
5.2.130.0030.06711.14
5.2.120.0170.05311.04
5.2.110.0030.04711.09
5.2.100.0100.04311.10
5.2.90.0070.03011.21
5.2.80.0030.06011.18
5.2.70.0000.04711.03
5.2.60.0100.03711.00
5.2.50.0070.05711.04
5.2.40.0030.02711.09
5.2.30.0030.03010.90
5.2.20.0030.03310.98
5.2.10.0000.03310.91
5.2.00.0070.03310.66
5.1.60.0000.03010.10
5.1.50.0030.0279.87
5.1.40.0030.02710.00
5.1.30.0070.02310.43
5.1.20.0030.03010.23
5.1.10.0000.0279.97
5.1.00.0000.02710.07
5.0.50.0000.0238.49
5.0.40.0000.0238.54
5.0.30.0000.0338.49
5.0.20.0000.0308.49
5.0.10.0030.0408.49
5.0.00.0000.0408.49
4.4.90.0000.0178.49
4.4.80.0000.0238.49
4.4.70.0030.0138.49
4.4.60.0000.0178.49
4.4.50.0000.0208.49
4.4.40.0030.0238.49
4.4.30.0000.0178.49
4.4.20.0000.0238.49
4.4.10.0000.0178.49
4.4.00.0000.0278.49
4.3.110.0030.0138.49
4.3.100.0000.0308.49
4.3.90.0000.0178.49
4.3.80.0030.0438.49
4.3.70.0000.0308.49
4.3.60.0000.0338.49
4.3.50.0030.0308.49
4.3.40.0000.0238.49
4.3.30.0000.0178.49
4.3.20.0030.0138.49
4.3.10.0030.0308.49
4.3.00.0000.0338.49

preferences:
46.72 ms | 401 KiB | 5 Q