3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array ( 0 => array ( 'Team' => 'Midtjylland', 'country' => 'dk', 'clubid' => '2', 'P' => '26', 'W' => '21', 'D' => '2', 'L' => '3', 'F' => '42', 'A' => '14', 'GD' => '28', 'Pts' => '65', 'form' => 'W,L,W,W,W,W,L,W,W,W,W,W,W,W,W,L,D,W,W,W,D,W,W,W,W,W', ), 1 => array ( 'Team' => 'København', 'country' => 'dk', 'clubid' => '1', 'P' => '26', 'W' => '18', 'D' => '2', 'L' => '6', 'F' => '47', 'A' => '29', 'GD' => '18', 'Pts' => '56', 'form' => 'W,W,L,W,D,L,W,W,W,W,L,W,W,W,L,W,D,L,L,W,W,W,W,W,W,W', ), 2 => array ( 'Team' => 'AGF', 'country' => 'dk', 'clubid' => '9', 'P' => '26', 'W' => '14', 'D' => '5', 'L' => '7', 'F' => '42', 'A' => '28', 'GD' => '14', 'Pts' => '47', 'form' => 'W,W,D,L,D,W,W,D,W,W,W,W,L,L,L,W,W,W,W,W,W,D,L,L,L,D', ), 3 => array ( 'Team' => 'Brøndby', 'country' => 'dk', 'clubid' => '4', 'P' => '26', 'W' => '13', 'D' => '3', 'L' => '10', 'F' => '47', 'A' => '37', 'GD' => '10', 'Pts' => '42', 'form' => 'L,W,D,W,L,W,D,L,L,L,W,W,W,W,W,L,L,W,L,L,W,W,L,W,D,W', ), 4 => array ( 'Team' => 'Nordsjælland', 'country' => 'dk', 'clubid' => '7', 'P' => '26', 'W' => '12', 'D' => '5', 'L' => '9', 'F' => '48', 'A' => '35', 'GD' => '13', 'Pts' => '41', 'form' => 'L,W,D,W,W,W,W,L,D,W,D,L,L,W,D,L,W,L,W,L,W,D,L,W,L,W', ), 5 => array ( 'Team' => 'AaB', 'country' => 'dk', 'clubid' => '6', 'P' => '26', 'W' => '11', 'D' => '5', 'L' => '10', 'F' => '44', 'A' => '33', 'GD' => '11', 'Pts' => '38', 'form' => 'L,D,W,L,W,W,L,D,D,W,D,L,W,W,W,L,L,L,W,W,L,W,L,W,D,L', ), 6 => array ( 'Team' => 'Randers', 'country' => 'dk', 'clubid' => '8', 'P' => '26', 'W' => '10', 'D' => '5', 'L' => '11', 'F' => '39', 'A' => '35', 'GD' => '4', 'Pts' => '35', 'form' => 'L,L,D,L,W,D,W,L,W,L,D,W,L,L,W,W,W,W,W,L,L,L,W,D,D,L', ), 7 => array ( 'Team' => 'Horsens', 'country' => 'dk', 'clubid' => '10', 'P' => '26', 'W' => '10', 'D' => '4', 'L' => '12', 'F' => '25', 'A' => '44', 'GD' => '-19', 'Pts' => '34', 'form' => 'W,W,W,L,L,L,W,D,W,L,W,D,L,W,L,D,L,D,W,L,L,L,W,L,W,L', ), 8 => array ( 'Team' => 'OB', 'country' => 'dk', 'clubid' => '3', 'P' => '26', 'W' => '9', 'D' => '6', 'L' => '11', 'F' => '34', 'A' => '30', 'GD' => '4', 'Pts' => '33', 'form' => 'W,L,D,D,D,L,L,D,L,L,L,W,W,L,W,W,L,W,D,D,L,W,W,L,W,L', ), 9 => array ( 'Team' => 'Lyngby', 'country' => 'dk', 'clubid' => '34', 'P' => '26', 'W' => '9', 'D' => '5', 'L' => '12', 'F' => '31', 'A' => '45', 'GD' => '-14', 'Pts' => '32', 'form' => 'D,L,L,L,W,L,W,D,D,D,W,L,W,L,D,W,W,L,L,W,L,L,W,L,L,W', ), 10 => array ( 'Team' => 'SønderjyskE', 'country' => 'dk', 'clubid' => '11', 'P' => '26', 'W' => '6', 'D' => '9', 'L' => '11', 'F' => '31', 'A' => '44', 'GD' => '-13', 'Pts' => '27', 'form' => 'D,L,D,L,L,W,L,W,L,D,L,L,L,L,W,W,D,D,D,L,D,D,L,W,D,W', ), 11 => array ( 'Team' => 'Hobro', 'country' => 'dk', 'clubid' => '13', 'P' => '26', 'W' => '3', 'D' => '14', 'L' => '9', 'F' => '25', 'A' => '35', 'GD' => '-10', 'Pts' => '23', 'form' => 'D,W,D,D,L,L,D,D,D,L,D,L,D,L,L,L,D,W,L,D,D,L,W,D,D,D', ), 12 => array ( 'Team' => 'Esbjerg', 'country' => 'dk', 'clubid' => '5', 'P' => '26', 'W' => '4', 'D' => '6', 'L' => '16', 'F' => '22', 'A' => '44', 'GD' => '-22', 'Pts' => '18', 'form' => 'L,D,D,L,L,W,L,L,L,W,L,D,L,L,L,D,W,L,L,D,W,L,L,L,D,L', ), 13 => array ( 'Team' => 'Silkeborg', 'country' => 'dk', 'clubid' => '33', 'P' => '26', 'W' => '3', 'D' => '7', 'L' => '16', 'F' => '31', 'A' => '55', 'GD' => '-24', 'Pts' => '16', 'form' => 'D,L,W,D,D,L,L,W,L,L,L,L,D,W,L,L,L,L,L,D,D,D,L,L,L,L', ), ); $arr2 = array ( 0 => array ( 'Team' => 'SønderjyskE', 'country' => 'dk', 'clubid' => '11', 'P' => '6', 'W' => '3', 'D' => '2', 'L' => '1', 'F' => '6', 'A' => '5', 'GD' => '1', 'Pts' => '11', 'form' => 'D,D,W,W,L,W', ), 1 => array ( 'Team' => 'Silkeborg', 'country' => 'dk', 'clubid' => '33', 'P' => '6', 'W' => '3', 'D' => '1', 'L' => '2', 'F' => '12', 'A' => '4', 'GD' => '8', 'Pts' => '10', 'form' => 'W,W,L,L,D,W', ), 2 => array ( 'Team' => 'OB', 'country' => 'dk', 'clubid' => '3', 'P' => '6', 'W' => '3', 'D' => '1', 'L' => '2', 'F' => '9', 'A' => '12', 'GD' => '-3', 'Pts' => '10', 'form' => 'L,D,W,W,W,L', ), 3 => array ( 'Team' => 'Lyngby', 'country' => 'dk', 'clubid' => '34', 'P' => '6', 'W' => '0', 'D' => '2', 'L' => '4', 'F' => '3', 'A' => '9', 'GD' => '-6', 'Pts' => '2', 'form' => 'D,L,L,L,D,L', ), ); foreach ($arr2 as $array) { $result[$array['clubid']] = $array; } foreach ($arr1 as $array) { if (isset($result[$array['clubid']])) { $result[$array['clubid']]['form'] .= ',' . $array['form']; foreach (['P', 'W', 'D', 'L', 'F', 'A', 'GD', 'Pts'] as $tally) { $result[$array['clubid']][$tally] += $array[$tally]; } } } var_export($result);

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.10.0090.00620.53
8.3.140.0100.00017.04
8.3.130.0060.00316.91
8.3.120.0160.00019.02
8.3.110.0110.00720.94
8.3.100.0120.00616.61
8.3.90.0110.00726.77
8.3.80.0090.00019.36
8.3.70.0110.00716.75
8.3.60.0110.01118.18
8.3.50.0100.00724.42
8.3.40.0100.00718.73
8.3.30.0090.00618.85
8.3.20.0080.00024.18
8.3.10.0040.00424.66
8.3.00.0030.00626.16
8.2.260.0040.00418.30
8.2.250.0040.00717.00
8.2.240.0050.00518.93
8.2.230.0000.00822.58
8.2.220.0080.00024.06
8.2.210.0130.00726.77
8.2.200.0060.00318.88
8.2.190.0130.00318.18
8.2.180.0070.00725.92
8.2.170.0070.00718.91
8.2.160.0110.00322.96
8.2.150.0000.00725.66
8.2.140.0090.00024.66
8.2.130.0060.00326.16
8.2.120.0000.00821.12
8.2.110.0060.00319.22
8.2.100.0110.00017.84
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0040.00418.16
8.2.50.0030.00618.05
8.2.40.0040.00420.06
8.2.30.0040.00418.13
8.2.20.0030.00718.11
8.2.10.0040.00419.21
8.2.00.0000.00819.41
8.1.310.0040.01516.71
8.1.300.0030.00618.59
8.1.290.0040.00830.84
8.1.280.0100.01025.92
8.1.270.0040.00423.99
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00723.71
8.1.230.0000.01120.90
8.1.220.0080.00017.76
8.1.210.0030.00718.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.55
8.1.160.0050.00218.86
8.1.150.0040.00418.81
8.1.140.0000.00820.63
8.1.130.0040.00417.51
8.1.120.0080.00017.48
8.1.110.0050.00317.39
8.1.100.0000.00717.53
8.1.90.0040.00417.55
8.1.80.0070.00317.48
8.1.70.0070.00017.48
8.1.60.0030.00617.54
8.1.50.0000.00817.59
8.1.40.0030.00617.58
8.1.30.0040.00417.59
8.1.20.0050.00317.59
8.1.10.0000.00817.58
8.1.00.0000.01017.46
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0070.00018.50
8.0.270.0000.00717.97
8.0.260.0070.00016.85
8.0.250.0090.00017.04
8.0.240.0000.00716.89
8.0.230.0060.00316.99
8.0.220.0000.00716.95
8.0.210.0040.00416.82
8.0.200.0030.00516.97
8.0.190.0060.00316.98
8.0.180.0030.00517.05
8.0.170.0060.00316.86
8.0.160.0000.00716.96
8.0.150.0070.00016.81
8.0.140.0020.00516.87
8.0.130.0000.00513.43
8.0.120.0080.00016.81
8.0.110.0000.00716.94
8.0.100.0000.00816.79
8.0.90.0040.00416.89
8.0.80.0100.00716.88
8.0.70.0030.00516.78
8.0.60.0000.00716.74
8.0.50.0040.00416.97
8.0.30.0070.01716.93
8.0.20.0090.00917.28
8.0.10.0000.00717.02
8.0.00.0090.00916.78
7.4.330.0020.00215.55
7.4.320.0000.00816.63
7.4.300.0030.00316.65
7.4.290.0070.00016.52
7.4.280.0030.00616.39
7.4.270.0070.00016.65
7.4.260.0000.00513.23
7.4.250.0040.00416.63
7.4.240.0030.00316.58
7.4.230.0070.00016.43
7.4.220.0040.00316.71
7.4.210.0050.00916.63
7.4.200.0000.00816.56
7.4.130.0150.00716.55
7.4.120.0170.00316.48
7.4.110.0080.01116.59
7.4.100.0030.01416.73
7.4.90.0110.00816.55
7.4.80.0140.00316.31
7.4.70.0160.00716.46
7.4.60.0090.01216.69
7.4.50.0140.01216.50
7.4.40.0090.01216.22
7.4.30.0080.01516.63
7.4.20.0120.01216.51
7.4.10.0090.01116.55
7.4.00.0120.00616.80
7.3.330.0030.00316.20
7.3.320.0030.00313.36
7.3.310.0030.00316.45
7.3.300.0000.00716.36
7.3.290.0070.00916.40
7.3.260.0120.00616.59
7.3.230.0060.00916.55
7.3.210.0030.01316.48
7.3.200.0160.00616.26
7.3.190.0100.01316.56
7.3.180.0120.00916.37
7.3.170.0140.00916.38
7.3.160.0190.00316.35
7.3.150.0160.01016.74
7.3.140.0150.00516.48
7.3.130.0250.00016.42
7.3.120.0050.01616.51
7.3.110.0070.01416.52
7.3.100.0140.01116.49
7.3.90.0120.00916.40
7.3.80.0150.01116.62
7.3.70.0120.00916.42
7.3.60.0150.00816.47
7.3.50.0170.00716.27
7.3.40.0160.00316.34
7.3.30.0140.00816.23
7.3.20.0160.01016.31
7.3.10.0030.01816.43
7.3.00.0080.01316.46
7.2.330.0130.01316.75
7.2.320.0230.00416.74
7.2.310.0180.01216.81
7.2.300.0120.01016.69
7.2.290.0170.01216.46
7.2.280.0150.00816.64
7.2.270.0100.01416.68
7.2.260.0150.00716.46
7.2.250.0110.01216.61
7.2.240.0170.00816.80
7.2.230.0070.01716.72
7.2.220.0090.01316.71
7.2.210.0080.01216.46
7.2.200.0070.01416.75
7.2.190.0190.00516.46
7.2.180.0150.00616.48
7.2.170.0230.00016.58
7.2.160.0190.00516.61
7.2.150.0180.00816.47
7.2.140.0120.01216.59
7.2.130.0130.01316.64
7.2.120.0150.01116.66
7.2.110.0180.01116.71
7.2.100.0170.00716.69
7.2.90.0030.01816.65
7.2.80.0000.02016.72
7.2.70.0120.01216.68
7.2.60.0160.01116.59
7.2.50.0210.01516.53
7.2.40.0150.00716.60
7.2.30.0090.01016.70
7.2.20.0070.01116.60
7.2.10.0030.01716.69
7.2.00.0160.01216.59

preferences:
29.57 ms | 403 KiB | 5 Q