3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ ["partner_name" => "Liquid Education", "lead_payIn" => 44.00], ["partner_name" => "Yodel Voice", "lead_payIn" => 44.00], ["partner_name" => "Yodel Voice", "lead_payIn" => 44.00], ["partner_name" => "Yodel Voice", "lead_payIn" => 44.00], ["partner_name" => "Yodel Voice", "lead_payIn" => 44.00], ]; $result = []; foreach ($arr as $a) { array_key_exists( $a["partner_name"], $result ) ? $result[$a["partner_name"]] += $a["lead_payIn"] : $result[$a["partner_name"]] = $a["lead_payIn"]; } print_r($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.5.10.0130.00616.54
8.5.00.0120.01019.87
8.4.160.0090.01220.73
8.4.150.0020.00114.05
8.4.140.0080.00317.28
8.4.130.0120.00817.90
8.4.120.0120.00820.55
8.4.110.0120.00622.32
8.4.100.0130.00717.92
8.4.90.0110.01018.88
8.4.80.0030.00618.43
8.4.70.0130.00817.80
8.4.60.0120.00818.70
8.4.50.0110.00818.65
8.4.40.0000.00817.60
8.4.30.0130.00720.69
8.4.20.0160.00317.69
8.4.10.0040.00419.32
8.3.280.0120.00818.41
8.3.270.0120.00916.32
8.3.260.0070.01116.68
8.3.250.0120.00719.01
8.3.240.0120.00716.57
8.3.230.0150.00416.27
8.3.220.0120.00718.80
8.3.210.0170.00318.55
8.3.200.0050.00416.78
8.3.190.0110.00417.13
8.3.180.0090.00618.85
8.3.170.0000.01917.32
8.3.160.0040.01116.82
8.3.150.0170.00317.18
8.3.140.0040.01416.60
8.3.130.0110.00716.53
8.3.120.0090.00018.96
8.3.110.0120.00420.94
8.3.100.0060.00324.06
8.3.90.0050.00326.77
8.3.80.0110.00016.50
8.3.70.0110.01116.58
8.3.60.0090.01218.55
8.3.50.0170.01624.64
8.3.40.0040.01518.59
8.3.30.0100.00318.84
8.3.20.0000.00724.18
8.3.10.0080.00024.66
8.3.00.0050.00226.16
8.2.290.0070.00320.64
8.2.280.0110.00818.50
8.2.270.0160.00316.54
8.2.260.0120.00616.90
8.2.250.0070.00718.40
8.2.240.0030.00617.00
8.2.230.0080.00022.58
8.2.220.0050.00537.54
8.2.210.0040.00426.77
8.2.200.0080.00416.50
8.2.190.0070.01016.58
8.2.180.0080.01125.92
8.2.170.0090.00619.03
8.2.160.0030.01022.96
8.2.150.0060.00325.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0050.00319.64
8.2.110.0090.00020.52
8.2.100.0110.00018.09
8.2.90.0030.00518.16
8.2.80.0000.00918.05
8.2.70.0050.00318.16
8.2.60.0040.00418.18
8.2.50.0000.00718.10
8.2.40.0040.00419.34
8.2.30.0030.00518.23
8.2.20.0040.00418.05
8.2.10.0040.00419.30
8.2.00.0040.00419.24
8.1.330.0080.01122.02
8.1.320.0130.00616.25
8.1.310.0060.00316.76
8.1.300.0030.00616.16
8.1.290.0040.00418.88
8.1.280.0100.01025.92
8.1.270.0130.00323.78
8.1.260.0070.00726.35
8.1.250.0040.00428.09
8.1.240.0070.00320.81
8.1.230.0000.01120.96
8.1.220.0040.00417.78
8.1.210.0100.00018.77
8.1.200.0030.00617.25
8.1.190.0040.00417.35
8.1.180.0000.00718.10
8.1.170.0000.00820.62
8.1.160.0040.00418.83
8.1.150.0050.00218.88
8.1.140.0030.00618.94
8.1.130.0070.00020.14
8.1.120.0000.00717.48
8.1.110.0040.00417.43
8.1.100.0000.00717.41
8.1.90.0040.00417.45
8.1.80.0030.00617.33
8.1.70.0040.00417.34
8.1.60.0060.00317.64
8.1.50.0040.00417.49
8.1.40.0040.00417.52
8.1.30.0040.00417.60
8.1.20.0000.00817.48
8.1.10.0000.00817.53
8.1.00.0030.00517.52
8.0.300.0030.00619.77
8.0.290.0060.00316.75
8.0.280.0030.00318.44
8.0.270.0000.00817.91
8.0.260.0060.00018.55
8.0.250.0000.00716.84
8.0.240.0030.00316.85
8.0.230.0050.00316.94
8.0.220.0030.00316.95
8.0.210.0000.00716.73
8.0.200.0000.00716.93
8.0.190.0000.00716.87
8.0.180.0000.00716.87
8.0.170.0000.00916.95
8.0.160.0100.00016.87
8.0.150.0040.00416.79
8.0.140.0000.00816.82
8.0.130.0000.00513.32
8.0.120.0080.00016.88
8.0.110.0000.00816.79
8.0.100.0000.00716.84
8.0.90.0070.00016.92
8.0.80.0090.00616.80
8.0.70.0070.00016.72
8.0.60.0000.00716.85
8.0.50.0040.00416.95
8.0.30.0060.01016.87
8.0.20.0170.00317.07
8.0.10.0050.00216.90
8.0.00.0180.00716.85
7.4.330.0050.00015.55
7.4.320.0030.00516.66
7.4.300.0000.00916.51
7.4.290.0050.00316.46
7.4.280.0030.00616.54
7.4.270.0030.00316.61
7.4.260.0030.00313.29
7.4.250.0040.00416.45
7.4.240.0070.00016.61
7.4.230.0030.00316.25
7.4.220.0030.00316.67
7.4.210.0100.00816.60
7.4.200.0070.00016.49
7.4.130.0100.01416.48
7.4.120.0170.00016.37
7.4.110.0100.01116.23
7.4.100.0060.01416.15
7.4.90.0120.00616.32
7.4.80.0050.01616.09
7.4.70.0090.00916.67
7.4.60.0160.00616.43
7.4.50.0110.01116.41
7.4.40.0160.00616.38
7.4.30.0100.01416.42
7.4.20.0070.01116.52
7.4.10.0180.00316.41
7.4.00.0140.00516.19
7.3.330.0000.00816.38
7.3.320.0060.00013.19
7.3.310.0040.00416.40
7.3.300.0030.00316.22
7.3.290.0070.00816.31
7.3.260.0100.00616.48
7.3.250.0090.01216.16
7.3.240.0140.00416.28
7.3.230.0080.01116.24
7.3.220.0090.00916.33
7.3.210.0100.00916.11
7.3.200.0100.00816.27
7.3.190.0030.01516.34
7.3.180.0130.01316.36
7.3.170.0070.01116.38
7.3.160.0090.00916.14
7.3.150.0070.01016.30
7.3.140.0100.01016.18
7.3.130.0090.01016.52
7.3.120.0110.01116.61
7.3.110.0080.01216.27
7.3.100.0090.00916.26
7.3.90.0070.01116.24
7.3.80.0030.01416.29
7.3.70.0040.01316.21
7.3.60.0040.01516.32
7.3.50.0090.00916.07
7.3.40.0080.01116.16
7.3.30.0140.00616.20
7.3.20.0060.01116.32
7.3.10.0150.01216.37
7.3.00.0060.01216.35

preferences:
37.74 ms | 403 KiB | 5 Q