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) ); ksort($scores); //start loop for rows foreach($scores as $key=>$value) { echo array_sum($value) . "<br />"; }

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.40.0070.00718.84
8.3.30.0030.01419.01
8.3.20.0040.00420.19
8.3.10.0080.00023.61
8.3.00.0040.00419.13
8.2.170.0120.00922.96
8.2.160.0100.00320.39
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00422.08
8.2.110.0000.00822.07
8.2.100.0090.00617.65
8.2.90.0040.00419.05
8.2.80.0030.00617.97
8.2.70.0030.00617.50
8.2.60.0060.00318.04
8.2.50.0000.01218.07
8.2.40.0080.00019.64
8.2.30.0000.00717.95
8.2.20.0040.00417.78
8.2.10.0040.00418.04
8.2.00.0070.00017.79
8.1.270.0040.00423.75
8.1.260.0090.00026.35
8.1.250.0080.00028.09
8.1.240.0080.00022.19
8.1.230.0070.00419.11
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0090.00017.25
8.1.190.0000.00817.23
8.1.180.0030.00619.01
8.1.170.0030.00618.53
8.1.160.0000.00722.05
8.1.150.0020.00518.63
8.1.140.0040.00417.49
8.1.130.0050.00217.82
8.1.120.0070.00017.42
8.1.110.0000.00717.46
8.1.100.0040.00417.46
8.1.90.0020.00517.30
8.1.80.0000.00717.44
8.1.70.0030.00317.32
8.1.60.0000.00817.50
8.1.50.0040.00417.51
8.1.40.0000.00817.50
8.1.30.0000.00817.41
8.1.20.0070.00017.54
8.1.10.0050.00317.39
8.1.00.0000.00717.45
8.0.300.0070.00018.77
8.0.290.0060.00317.18
8.0.280.0000.00718.47
8.0.270.0000.00717.29
8.0.260.0060.00017.26
8.0.250.0040.00416.93
8.0.240.0000.00916.86
8.0.230.0030.00316.98
8.0.220.0000.00716.76
8.0.210.0040.00416.83
8.0.200.0000.00716.93
8.0.190.0050.00217.01
8.0.180.0030.00316.96
8.0.170.0000.00816.87
8.0.160.0000.00816.82
8.0.150.0000.00716.74
8.0.140.0000.00716.90
8.0.130.0030.00313.35
8.0.120.0000.00816.81
8.0.110.0000.00716.80
8.0.100.0040.00416.70
8.0.90.0000.00816.74
8.0.80.0110.00716.93
8.0.70.0000.00816.91
8.0.60.0050.00316.75
8.0.50.0000.00716.85
8.0.30.0130.01116.81
8.0.20.0110.00717.40
8.0.10.0000.00716.94
8.0.00.0070.01416.73
7.4.330.0030.00315.00
7.4.320.0000.00616.45
7.4.300.0000.00616.50
7.4.290.0070.00016.55
7.4.280.0000.00816.49
7.4.270.0040.00416.48
7.4.260.0000.00716.47
7.4.250.0000.00716.51
7.4.240.0020.00516.48
7.4.230.0060.00016.32
7.4.220.0120.00616.66
7.4.210.0070.00916.55
7.4.200.0050.00216.52
7.4.190.0030.00316.71
7.4.160.0060.00916.50
7.4.150.0090.01217.40
7.4.140.0090.01417.86
7.4.130.0100.00816.47
7.4.120.0080.00916.45
7.4.110.0170.00016.47
7.4.100.0090.01516.48
7.4.90.0090.00916.46
7.4.80.0130.01019.39
7.4.70.0060.01216.45
7.4.60.0080.00816.47
7.4.50.0030.00516.54
7.4.40.0060.00916.57
7.4.30.0060.00916.43
7.4.00.0060.01015.00
7.3.330.0000.00513.19
7.3.320.0060.00013.05
7.3.310.0030.00316.27
7.3.300.0040.00416.30
7.3.290.0090.00616.37
7.3.280.0070.01116.28
7.3.270.0030.01417.40
7.3.260.0160.00716.41
7.3.250.0100.00716.30
7.3.240.0130.00916.55
7.3.230.0070.01016.39
7.3.210.0110.00716.56
7.3.200.0140.00419.39
7.3.190.0120.00516.57
7.3.180.0120.00416.20
7.3.170.0030.01216.28
7.3.160.0120.00316.37
7.3.120.0070.00714.70
7.2.330.0070.01016.79
7.2.320.0100.00716.71
7.2.310.0080.01116.64
7.2.300.0080.01116.64
7.2.290.0100.01116.61
7.2.60.0120.00316.80
7.2.00.0060.00619.46
7.1.200.0000.01415.89
7.1.100.0110.00517.97
7.1.70.0040.00417.00
7.1.60.0100.00719.46
7.1.50.0150.00916.95
7.1.00.0130.06722.32
7.0.200.0050.00316.80
7.0.140.0070.09021.95
7.0.70.0170.07021.93
7.0.60.0070.07021.89
7.0.50.0070.06022.05
7.0.40.0070.08020.17
7.0.30.0030.08720.07
7.0.20.0070.08320.07
7.0.10.0070.08020.03
7.0.00.0030.08720.11
5.6.280.0130.06321.00
5.6.220.0100.08020.56
5.6.210.0070.06720.78
5.6.200.0130.07321.02
5.6.190.0100.08021.11
5.6.180.0030.05320.94
5.6.170.0100.07721.08
5.6.160.0030.04720.94
5.6.150.0200.07021.14
5.6.140.0030.08021.06
5.6.130.0070.08721.04
5.6.120.0070.07721.04
5.6.110.0070.06020.94
5.6.100.0030.08721.02
5.6.90.0070.08321.02
5.6.80.0070.08020.32
5.6.70.0100.07720.50
5.6.60.0030.06320.51
5.6.50.0000.05020.48
5.6.40.0100.08020.25
5.6.30.0070.08320.45
5.6.20.0100.07020.37
5.6.10.0070.06720.42
5.6.00.0030.08020.30
5.5.360.0030.08020.39
5.5.350.0070.08320.36
5.5.340.0100.08320.80
5.5.330.0070.08320.78
5.5.320.0100.07320.74
5.5.310.0100.07720.88
5.5.300.0030.08320.92
5.5.290.0030.04720.77
5.5.280.0070.08720.73
5.5.270.0000.06320.85
5.5.260.0000.08720.82
5.5.250.0070.08020.70
5.5.240.0070.08320.26
5.5.230.0100.06720.24
5.5.220.0030.06720.25
5.5.210.0000.05320.25
5.5.200.0030.06020.27
5.5.190.0100.07020.27
5.5.180.0030.08020.21
5.5.160.0070.06720.28
5.5.150.0130.08020.14
5.5.140.0000.08720.14
5.5.130.0070.08020.26
5.5.120.0070.05020.13
5.5.110.0070.08020.27
5.5.100.0000.08320.14
5.5.90.0030.08020.01
5.5.80.0030.04320.07
5.5.70.0070.07720.15
5.5.60.0070.07720.03
5.5.50.0170.02719.92
5.5.40.0100.03720.00
5.5.30.0030.04019.94
5.5.20.0070.06320.13
5.5.10.0070.07020.05
5.5.00.0100.02719.95
5.4.450.0100.08019.29
5.4.440.0030.08719.45
5.4.430.0070.08019.55
5.4.420.0100.07019.46
5.4.410.0030.06319.27
5.4.400.0030.08019.12
5.4.390.0030.06318.98
5.4.380.0030.08318.90
5.4.370.0000.08019.03
5.4.360.0000.04019.03
5.4.350.0000.05319.08
5.4.340.0030.07319.09
5.4.320.0100.05718.81
5.4.310.0000.06319.13
5.4.300.0000.08319.09
5.4.290.0000.08318.98
5.4.280.0070.07318.90
5.4.270.0070.07019.14
5.4.260.0000.06019.11
5.4.250.0000.04719.12
5.4.240.0000.08019.04
5.4.230.0000.08019.04
5.4.220.0130.04319.07
5.4.210.0000.04319.04
5.4.200.0000.04018.77
5.4.190.0100.04718.80
5.4.180.0030.03719.02
5.4.170.0070.02718.93
5.4.160.0100.04719.07
5.4.150.0070.03319.04
5.4.140.0030.03316.35
5.4.130.0030.03016.34
5.4.120.0070.06716.27
5.4.110.0030.03316.23
5.4.100.0000.04716.30
5.4.90.0070.03016.38
5.4.80.0030.06016.34
5.4.70.0030.03716.30
5.4.60.0000.03716.29
5.4.50.0030.03316.30
5.4.40.0000.03716.23
5.4.30.0070.03016.28
5.4.20.0030.03316.37
5.4.10.0030.07716.31
5.4.00.0030.03315.81
5.3.290.0070.04314.50
5.3.280.0000.08314.44
5.3.270.0000.04714.55
5.3.260.0030.03714.53
5.3.250.0000.04014.58
5.3.240.0000.04314.58
5.3.230.0130.07314.61
5.3.220.0000.07714.57
5.3.210.0100.03314.43
5.3.200.0000.04014.41
5.3.190.0030.03014.44
5.3.180.0000.05314.54
5.3.170.0030.03714.56
5.3.160.0030.07014.55
5.3.150.0030.03314.55
5.3.140.0030.03314.41
5.3.130.0030.03014.54
5.3.120.0000.05314.52
5.3.110.0000.07314.52
5.3.100.0030.03714.01
5.3.90.0070.03013.96
5.3.80.0070.03013.98
5.3.70.0030.03313.88
5.3.60.0000.03713.97
5.3.50.0000.06713.71
5.3.40.0030.02713.96
5.3.30.0000.06713.88
5.3.20.0030.03313.65
5.3.10.0030.06013.57
5.3.00.0030.02713.64
5.2.170.0070.02012.37
5.2.160.0030.03012.37
5.2.150.0000.03012.37
5.2.140.0030.02712.37
5.2.130.0030.02712.37
5.2.120.0070.02012.37
5.2.110.0000.02312.37
5.2.100.0030.05712.37
5.2.90.0000.03012.37
5.2.80.0000.04712.37
5.2.70.0030.03312.37
5.2.60.0030.02712.37
5.2.50.0030.03012.37
5.2.40.0000.02712.37
5.2.30.0030.03312.37
5.2.20.0000.02712.37
5.2.10.0000.03012.37
5.2.00.0000.03012.37
5.1.60.0000.02012.37
5.1.50.0000.02312.37
5.1.40.0000.03312.37
5.1.30.0000.02712.37
5.1.20.0030.02712.37
5.1.10.0000.02312.37
5.1.00.0000.02312.37
5.0.50.0070.02012.37
5.0.40.0030.01712.37
5.0.30.0030.06012.37
5.0.20.0000.04712.37
5.0.10.0030.03712.37
5.0.00.0070.05012.37
4.4.90.0000.01312.37
4.4.80.0030.01012.37
4.4.70.0000.01712.37
4.4.60.0000.01712.37
4.4.50.0000.01312.37
4.4.40.0000.02312.37
4.4.30.0000.03012.37
4.4.20.0000.01312.37
4.4.10.0000.01712.37
4.4.00.0000.05712.37
4.3.110.0030.02712.37
4.3.100.0000.02712.37
4.3.90.0000.03312.37
4.3.80.0000.06012.37
4.3.70.0000.02712.37
4.3.60.0000.02312.37
4.3.50.0030.03312.37
4.3.40.0000.05712.37
4.3.30.0000.03712.37
4.3.20.0030.03312.37
4.3.10.0070.03312.37
4.3.00.0000.03712.37

preferences:
41.88 ms | 400 KiB | 5 Q