3v4l.org

run code in 300+ PHP versions simultaneously
<?php $results = array ( 0 => array ( "punti" => 418, "vittorie" => 9, "podi" => 18, "gv" => 14, "id_pilota" => 1, "team" => "Red Bull Racing", "naz" => "it" ), 1 => array ( "punti" => 353, "vittorie" => 6, "podi" => 16, "gv" => 3, "id_pilota" => 19, "team" => "Scuderia Ferrari", "naz" => "it" ), 2 => array ( "punti" => 335, "vittorie" => 4, "podi" => 15, "gv" => 1, "id_pilota" => 5, "team" => "Mercedes-AMG", "naz" => "it" ), 3 => array ( "punti" => 181, "vittorie" => 1, "podi" => 5, "gv" => 1, "id_pilota" => 2, "team" => "Mercedes-AMG", "naz" => "it" ), 4 => array ( "punti" => 147, "vittorie" => 0, "podi" => 3, "gv" => 0, "id_pilota" => 14, "team" => "Racing Point F1", "naz" => "mx" ), 5 => array ( "punti" => 127, "vittorie" => 0, "podi" => 0, "gv" => 0, "id_pilota" => 13, "team" => "Haas F1", "naz" => "dk" ) ); $teams = array(); foreach ($results as $result) { $team = $result['team']; if (!isset($teams[$team])) { $teams[$team] = array('team' => $team, 'points' => $result['punti']); } else { $teams[$team]['points'] += $result['punti']; } } $teams = array_values($teams); print_r($teams);

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.30.0090.00917.61
8.5.20.0100.00719.63
8.5.10.0130.00516.63
8.5.00.0120.01020.18
8.4.180.0160.00619.69
8.4.170.0130.00920.61
8.4.160.0160.00723.96
8.4.150.0080.00316.79
8.4.140.0100.01217.50
8.4.130.0110.00818.48
8.4.120.0080.01223.85
8.4.110.0030.00818.98
8.4.100.0100.00918.55
8.4.90.0050.00518.73
8.4.80.0100.01018.00
8.4.70.0120.00918.15
8.4.60.0130.00718.89
8.4.50.0110.00822.24
8.4.40.0160.00318.73
8.4.30.0170.00318.81
8.4.20.0100.01020.35
8.4.10.0090.00017.61
8.3.300.0070.00320.77
8.3.290.0100.01120.77
8.3.280.0110.00918.57
8.3.270.0130.00616.64
8.3.260.0050.00316.82
8.3.250.0090.01018.88
8.3.240.0100.00818.92
8.3.230.0110.00716.62
8.3.220.0060.00118.93
8.3.210.0080.00716.75
8.3.200.0040.00416.60
8.3.190.0100.01217.16
8.3.180.0110.00718.20
8.3.170.0040.00417.22
8.3.160.0080.00016.55
8.3.150.0090.00918.94
8.3.140.0090.00916.84
8.3.130.0040.01118.44
8.3.120.0080.00020.73
8.3.110.0040.00420.94
8.3.100.0060.01024.06
8.3.90.0090.00026.77
8.3.80.0060.00316.50
8.3.70.0140.00716.75
8.3.60.0140.00718.28
8.3.50.0110.00624.59
8.3.40.0180.00320.32
8.3.30.0110.00418.90
8.3.20.0070.00021.74
8.3.10.0040.00419.96
8.3.00.0000.00720.62
8.2.300.0110.01124.09
8.2.290.0070.00320.54
8.2.280.0090.00418.68
8.2.270.0060.00316.92
8.2.260.0070.00720.75
8.2.250.0120.00416.32
8.2.240.0040.00417.47
8.2.230.0050.00322.58
8.2.220.0090.00037.54
8.2.210.0090.00926.77
8.2.200.0060.00316.25
8.2.190.0150.00316.75
8.2.180.0150.00025.92
8.2.170.0160.00319.08
8.2.160.0100.00319.16
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0060.00321.07
8.2.110.0040.00722.08
8.2.100.0040.00817.91
8.2.90.0080.00017.63
8.2.80.0080.00018.95
8.2.70.0000.00817.80
8.2.60.0040.00418.28
8.2.50.0030.00619.34
8.2.40.0080.00021.19
8.2.30.0050.00219.28
8.2.20.0000.00818.08
8.2.10.0040.00419.19
8.2.00.0070.00019.39
8.1.340.0110.00721.54
8.1.330.0090.00921.72
8.1.320.0120.00716.02
8.1.310.0110.00516.49
8.1.300.0150.00018.41
8.1.290.0030.00618.88
8.1.280.0110.00425.92
8.1.270.0040.00424.66
8.1.260.0060.00326.35
8.1.250.0000.00728.09
8.1.240.0090.00023.85
8.1.230.0110.00017.95
8.1.220.0090.00017.74
8.1.210.0080.00018.77
8.1.200.0000.00917.25
8.1.190.0060.00317.23
8.1.180.0000.00818.90
8.1.170.0080.00018.41
8.1.160.0080.00018.94
8.1.150.0000.00718.74
8.1.140.0030.00518.96
8.1.130.0030.00317.37
8.1.120.0040.00417.35
8.1.110.0040.00417.35
8.1.100.0000.00817.35
8.1.90.0030.00717.32
8.1.80.0000.00917.46
8.1.70.0000.00717.51
8.1.60.0040.00417.60
8.1.50.0040.00417.54
8.1.40.0000.00817.41
8.1.30.0030.00517.51
8.1.20.0040.00417.55
8.1.10.0060.00317.56
8.1.00.0060.00317.50
8.0.300.0040.00418.77
8.0.290.0060.00316.59
8.0.280.0040.00418.45
8.0.270.0030.00316.86
8.0.260.0030.00316.81
8.0.250.0030.00316.98
8.0.240.0000.00816.95
8.0.230.0000.00716.87
8.0.220.0000.00916.84
8.0.210.0000.00716.76
8.0.200.0030.00316.94
8.0.190.0000.00816.98
8.0.180.0040.00416.82
8.0.170.0040.00416.92
8.0.160.0070.00016.90
8.0.150.0040.00416.73
8.0.140.0040.00416.84
8.0.130.0000.00513.29
8.0.120.0050.00316.76
8.0.110.0000.00716.74
8.0.100.0040.00416.84
8.0.90.0000.00916.75
8.0.80.0050.01316.93
8.0.70.0000.00816.69
8.0.60.0040.00416.77
8.0.50.0000.00716.77
8.0.30.0100.01317.13
8.0.20.0100.00917.01
8.0.10.0040.00417.08
8.0.00.0150.00316.71
7.4.330.0040.00015.55
7.4.320.0030.00316.46
7.4.300.0030.00316.45
7.4.290.0030.00316.42
7.4.280.0000.00816.48
7.4.270.0100.00016.50
7.4.260.0060.00013.31
7.4.250.0030.00316.45
7.4.240.0050.00216.56
7.4.230.0000.00816.45
7.4.220.0000.00716.46
7.4.210.0050.01316.58
7.4.200.0000.00716.34
7.4.130.0140.00316.50
7.4.120.0070.01016.50
7.4.110.0070.01016.35
7.4.100.0180.00616.41
7.4.90.0030.01416.40
7.4.80.0090.00919.39
7.4.70.0110.00616.60
7.4.60.0130.00316.52
7.4.50.0080.00816.51
7.4.40.0100.00716.41
7.4.30.0080.00916.36
7.4.20.0120.00916.26
7.4.10.0170.00316.34
7.4.00.0140.00616.40
7.3.330.0050.00316.32
7.3.320.0000.00613.03
7.3.310.0040.00416.41
7.3.300.0000.00616.28
7.3.290.0080.01016.33
7.3.280.0080.00816.34
7.3.260.0170.00716.45
7.3.230.0060.01216.36
7.3.210.0100.00616.48
7.3.200.0160.00016.57
7.3.190.0040.01716.28
7.3.180.0070.01416.42
7.3.170.0130.00316.46
7.3.160.0080.01216.48
7.3.150.0040.01416.29
7.3.140.0030.01416.35
7.3.130.0090.00916.32
7.3.120.0090.00616.38
7.3.110.0110.00816.12
7.3.100.0180.00316.30
7.3.90.0080.00816.48
7.3.80.0100.00716.20
7.3.70.0090.00616.30
7.3.60.0150.00916.25
7.3.50.0060.01416.43
7.3.40.0110.00516.19
7.3.30.0090.00916.30
7.3.20.1060.00716.32
7.3.10.0120.00616.46
7.3.00.0090.01216.33
7.2.330.0150.00316.62
7.2.320.0110.00716.58
7.2.310.0200.00316.54
7.2.300.0030.01316.43
7.2.290.0030.01416.31
7.2.280.0070.01416.24
7.2.270.0060.01116.41
7.2.260.0100.00716.62
7.2.250.0110.00816.29
7.2.240.0100.00616.38
7.2.230.0070.01116.40
7.2.220.0040.01216.48
7.2.210.0090.00916.63
7.2.200.0100.01316.50
7.2.190.0120.01216.58
7.2.180.0070.01016.69
7.2.170.0130.01016.59
7.2.160.0090.00916.53
7.2.150.0120.01116.66
7.2.140.0040.01816.79
7.2.130.0070.01116.65
7.2.120.0090.01416.63
7.2.110.0160.00616.65
7.2.100.0150.00716.75
7.2.90.0090.00916.52
7.2.80.0140.01116.64
7.2.70.0090.00916.44
7.2.60.0100.01016.57
7.2.50.0030.01316.50
7.2.40.0160.00616.66
7.2.30.0080.00916.80
7.2.20.0090.00916.45
7.2.10.0090.00916.71
7.2.00.0150.00316.61

preferences:
106.57 ms | 1622 KiB | 5 Q