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"); foreach($scores as $key=>$value) { echo "<tr>"; //column for the names echo "<td>$key</td>"; //Total Column echo "<td class='total' align='center' valign='middle'>" . array_sum($value) . "</td>"; //loop for columns where the score should be displayed for($x=0; $x<count($value); $x++) { echo "<td class='games tip' align='center' valign='middle'>".sprintf('%02d', $value[$x])."</td>"; } echo "</tr>"; }

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.0030.01716.61
8.3.50.0120.00421.94
8.3.40.0090.00618.73
8.3.30.0070.00719.09
8.3.20.0080.00020.34
8.3.10.0040.00423.66
8.3.00.0030.00619.38
8.2.180.0090.00918.29
8.2.170.0090.00922.96
8.2.160.0070.00720.35
8.2.150.0090.00024.18
8.2.140.0090.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00422.09
8.2.110.0060.00322.07
8.2.100.0090.00317.78
8.2.90.0000.00819.17
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0100.00018.05
8.2.50.0000.00818.07
8.2.40.0040.00419.88
8.2.30.0000.00818.15
8.2.20.0000.00717.64
8.2.10.0000.00818.20
8.2.00.0000.00817.77
8.1.280.0050.01025.92
8.1.270.0060.00323.85
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0080.00023.97
8.1.230.0060.00619.16
8.1.220.0000.00917.77
8.1.210.0080.00018.77
8.1.200.0060.00617.25
8.1.190.0000.00917.35
8.1.180.0000.00818.10
8.1.170.0030.00518.59
8.1.160.0000.00721.97
8.1.150.0070.00018.57
8.1.140.0040.00417.51
8.1.130.0030.00317.90
8.1.120.0000.00717.39
8.1.110.0000.00817.50
8.1.100.0040.00417.38
8.1.90.0040.00417.51
8.1.80.0050.00217.51
8.1.70.0030.00317.43
8.1.60.0040.00417.65
8.1.50.0000.00817.54
8.1.40.0040.00417.43
8.1.30.0000.00817.58
8.1.20.0000.00717.58
8.1.10.0050.00317.55
8.1.00.0040.00417.54
8.0.300.0070.00018.77
8.0.290.0000.00817.05
8.0.280.0030.00318.49
8.0.270.0040.00417.41
8.0.260.0000.00617.34
8.0.250.0000.00717.00
8.0.240.0000.00617.04
8.0.230.0040.00416.98
8.0.220.0030.00317.04
8.0.210.0050.00216.93
8.0.200.0040.00416.89
8.0.190.0040.00416.96
8.0.180.0000.00816.92
8.0.170.0050.00316.97
8.0.160.0030.00317.04
8.0.150.0000.00716.84
8.0.140.0030.00316.90
8.0.130.0000.00613.33
8.0.120.0040.00416.76
8.0.110.0000.00716.75
8.0.100.0040.00416.74
8.0.90.0000.00816.93
8.0.80.0070.01017.00
8.0.70.0080.00016.95
8.0.60.0030.00516.90
8.0.50.0050.00216.85
8.0.30.0110.01117.06
8.0.20.0130.00717.40
8.0.10.0030.00417.05
8.0.00.0110.01116.81
7.4.330.0000.00515.00
7.4.320.0030.00316.52
7.4.300.0030.00316.51
7.4.290.0030.00316.63
7.4.280.0000.00816.52
7.4.270.0000.00716.47
7.4.260.0000.00716.55
7.4.250.0040.00416.35
7.4.240.0040.00316.62
7.4.230.0020.00516.34
7.4.220.0120.00616.54
7.4.210.0100.00516.56
7.4.200.0000.00716.69
7.4.190.0030.00316.56
7.4.160.0130.01316.56
7.4.150.0100.01017.40
7.4.140.0110.01017.86
7.4.130.0090.01216.44
7.4.120.0130.00616.44
7.4.110.0130.00716.65
7.4.100.0110.00716.48
7.4.90.0040.01416.52
7.4.80.0190.00019.39
7.4.70.0100.00716.62
7.4.60.0160.00616.38
7.4.50.0000.00816.58
7.4.40.0100.00716.38
7.4.30.0080.00816.46
7.4.00.0070.00715.05
7.3.330.0000.00513.38
7.3.320.0030.00313.41
7.3.310.0070.00016.37
7.3.300.0030.00316.41
7.3.290.0040.01116.39
7.3.280.0070.01216.39
7.3.270.0080.01117.40
7.3.260.0070.01116.52
7.3.250.0110.01016.53
7.3.240.0090.00916.42
7.3.230.0140.00316.40
7.3.210.0100.01016.27
7.3.200.0090.00919.39
7.3.190.0110.00716.64
7.3.180.0000.01516.73
7.3.170.0060.01116.34
7.3.160.0070.01116.39
7.3.120.0040.01114.82
7.2.330.0130.00616.58
7.2.320.0170.00716.78
7.2.310.0090.00916.84
7.2.300.0180.00616.68
7.2.290.0080.01116.60
7.1.200.0070.00715.55
7.1.70.0030.01216.71
7.1.60.0030.00717.16
7.1.50.0100.01316.93
7.1.00.0000.07722.41
7.0.200.0000.01516.89
7.0.140.0000.06322.09
7.0.60.0100.07020.10
7.0.50.0000.05017.80
7.0.40.0170.07320.26
7.0.30.0300.07020.33
7.0.20.0270.05320.05
7.0.10.0100.06720.16
7.0.00.0130.03320.11
5.6.280.0030.07321.11
5.6.210.0130.07320.58
5.6.200.0030.08718.20
5.6.190.0000.05720.52
5.6.180.3600.04720.48
5.6.170.0330.06320.45
5.6.160.0070.08320.50
5.6.150.0070.08718.15
5.6.140.0000.04718.14
5.6.130.0030.04718.14
5.6.120.0030.04720.93
5.6.110.0030.08720.98
5.6.100.0070.06720.99
5.6.90.0170.06720.99
5.6.80.0070.03720.55
5.5.350.0130.05720.45
5.5.340.0130.05317.98
5.5.330.0070.08320.33
5.5.320.0070.05020.23
5.5.310.0430.07320.51
5.5.300.0100.04317.99
5.5.290.0170.07317.93
5.5.280.0070.09020.98
5.5.270.0200.04320.88
5.5.260.0070.08020.88
5.5.250.0100.07720.72
5.5.240.0030.07320.17
5.4.450.0230.03719.32
5.4.440.0200.03719.52
5.4.430.0270.04319.54
5.4.420.0230.05019.31
5.4.410.0200.04319.28
5.4.400.0200.08019.23
5.4.390.0170.04719.16
5.4.380.0200.07019.26
5.4.370.0300.07019.06
5.4.360.0170.05018.86
5.4.350.0200.06318.94
5.4.340.0300.06719.32
5.4.320.0100.05018.92
5.4.310.0270.03319.23
5.4.300.0230.07719.14
5.4.290.0270.07319.16
5.4.280.0300.04719.31
5.4.270.0230.07018.97
5.4.260.0230.07319.14
5.4.250.0230.05319.23
5.4.240.0200.07719.13
5.4.230.0170.07019.30
5.4.220.0270.07019.08
5.4.210.0200.07718.99
5.4.200.0270.07318.97
5.4.190.0270.07319.08
5.4.180.0230.07719.13
5.4.170.0300.06719.30
5.4.160.0200.07019.12
5.4.150.0270.07019.20
5.4.140.0230.06716.42
5.4.130.0200.07316.46
5.4.120.0230.05016.50
5.4.110.0400.05716.46
5.4.100.0300.06016.57
5.4.90.0100.05316.22
5.4.80.0170.07716.39
5.4.70.0300.04316.58
5.4.60.0300.04716.54
5.4.50.0130.07316.43
5.4.40.0200.07016.42
5.4.30.0230.04716.57
5.4.20.0300.06316.55
5.4.10.0270.05016.48
5.4.00.0230.06715.74
5.3.290.0170.04014.60
5.3.280.0170.08014.51
5.3.270.0270.04314.67
5.3.260.0330.03714.53
5.3.250.0270.04314.67
5.3.240.0300.04014.84
5.3.230.0400.02714.54
5.3.220.0300.06714.59
5.3.210.0170.04014.57
5.3.200.0170.07714.59
5.3.190.0270.06714.66
5.3.180.0270.06714.66
5.3.170.0200.05014.64
5.3.160.0370.05714.80
5.3.150.0270.07714.57
5.3.140.0130.06714.54
5.3.130.0230.05014.48
5.3.120.0270.06314.48
5.3.110.0270.05014.57
5.3.100.0270.05014.05
5.3.90.0230.06714.09
5.3.80.0300.06014.04
5.3.70.0230.06014.25
5.3.60.0230.07014.14
5.3.50.0130.07313.98
5.3.40.0270.05313.97
5.3.30.0300.06314.01
5.3.20.0230.06713.87
5.3.10.0230.05313.79
5.3.00.0270.06713.55
5.2.170.0170.06012.59
5.2.160.0270.05012.59
5.2.150.0200.03712.59
5.2.140.0170.06312.59
5.2.130.0200.05712.59
5.2.120.0230.05312.59
5.2.110.0230.05712.59
5.2.100.0200.04712.59
5.2.90.0230.05312.59
5.2.80.0130.06712.59
5.2.70.0230.05312.59
5.2.60.0130.06012.59
5.2.50.0270.03312.59
5.2.40.0170.04012.59
5.2.30.0270.04712.59
5.2.20.0170.05012.59
5.2.10.0070.06712.59
5.2.00.0200.05312.59
5.1.60.0100.04312.59
5.1.50.0170.04312.59
5.1.40.0170.05312.59
5.1.30.0230.05012.59
5.1.20.0170.05012.59
5.1.10.0230.05012.59
5.1.00.0170.05312.59
5.0.50.0070.04712.59
5.0.40.0070.04712.59
5.0.30.0130.06312.59
5.0.20.0130.02312.59
5.0.10.0070.04712.59
5.0.00.0030.06312.59
4.4.90.0100.03312.59
4.4.80.0070.02312.59
4.4.70.0100.03312.59
4.4.60.0070.03012.59
4.4.50.0130.03012.59
4.4.40.0070.04012.59
4.4.30.0130.03312.59
4.4.20.0100.03312.59
4.4.10.0030.03012.59
4.4.00.0070.04712.59
4.3.110.0100.03312.59
4.3.100.0130.03012.59
4.3.90.0070.03312.59
4.3.80.0100.04712.59
4.3.70.0130.02312.59
4.3.60.0170.02312.59
4.3.50.0100.03312.59
4.3.40.0070.03312.59
4.3.30.0030.03312.59
4.3.20.0030.03012.59
4.3.10.0100.03312.59
4.3.00.0000.02012.59

preferences:
53.03 ms | 401 KiB | 5 Q