3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array =[ 0 => [ 0 => "AUA3H147", 1 => 2015, 2 => 'Audi' ], 1 => [ 0 => "AUA3H147", 1 => 2015, 2 => 'Ford' ], 2 => [ 0 => "AUA3H148", 1 => 2016, 2 => 'Chevy' ], 3 => [ 0 => "AUA3H148", 1 => 2017, 2 => 'Buick' ] ]; foreach ($array as $a) { $compositeKey = $a[0] . '_' . $a[1]; $result[$compositeKey] ??= $a; // only store if first occurrence of compositeKey } var_export(array_values($result)); // re-index and print

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.0110.00820.09
8.5.00.0140.01119.77
8.4.150.0030.00014.05
8.4.140.0150.00617.66
8.4.130.0110.00617.87
8.4.120.0130.00820.75
8.4.110.0100.00822.39
8.4.100.0100.01117.75
8.4.90.0100.01218.57
8.4.80.0050.00419.33
8.4.70.0120.00817.93
8.4.60.0120.00820.37
8.4.50.0070.01319.67
8.4.40.0130.00619.44
8.4.30.0060.01218.66
8.4.20.0100.01020.76
8.4.10.0060.00323.79
8.3.280.0090.01120.04
8.3.270.0120.00816.31
8.3.260.0080.00816.54
8.3.250.0050.00318.82
8.3.240.0130.00716.71
8.3.230.0090.01116.41
8.3.220.0030.00517.29
8.3.210.0050.00216.65
8.3.200.0120.00717.06
8.3.190.0090.00519.07
8.3.180.0120.00716.49
8.3.170.0060.01218.85
8.3.160.0110.00716.62
8.3.150.0110.00718.89
8.3.140.0070.00717.11
8.3.130.0030.00516.78
8.3.120.0050.00320.65
8.3.110.0110.00016.63
8.3.100.0000.01016.36
8.3.90.0000.00726.77
8.3.80.0060.00316.38
8.3.70.0150.00616.61
8.3.60.0070.00718.31
8.3.50.0090.00618.23
8.3.40.0140.00020.20
8.3.30.0030.01218.60
8.3.20.0000.00724.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.290.0130.00520.26
8.2.280.0070.00920.05
8.2.270.0120.00617.46
8.2.260.0060.00318.92
8.2.250.0080.00018.88
8.2.240.0050.00319.04
8.2.230.0030.00520.94
8.2.220.0080.00024.06
8.2.210.0040.00726.77
8.2.200.0060.00318.54
8.2.190.0110.00718.31
8.2.180.0100.00625.92
8.2.170.0110.00718.82
8.2.160.0030.01022.96
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00420.93
8.2.110.0030.00722.13
8.2.100.0090.00317.78
8.2.90.0050.00317.88
8.2.80.0060.00318.86
8.2.70.0000.00817.63
8.2.60.0040.00417.63
8.2.50.0000.00817.75
8.2.40.0000.00821.25
8.2.30.0030.00619.37
8.2.20.0030.00420.68
8.2.10.0040.00418.18
8.2.00.0070.00019.18
8.1.330.0080.01121.77
8.1.320.0100.01117.86
8.1.310.0040.00416.50
8.1.300.0160.00315.92
8.1.290.0060.00330.84
8.1.280.0110.00325.92
8.1.270.0050.00224.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00322.52
8.1.230.0130.00019.18
8.1.220.0000.00817.79
8.1.210.0050.00318.77
8.1.200.0000.00917.36
8.1.190.0050.00317.23
8.1.180.0080.00018.10
8.1.170.0030.00518.59
8.1.160.0040.00418.89
8.1.150.0000.00718.63
8.1.140.0000.00717.52
8.1.130.0000.00718.63
8.1.120.0000.00818.61
8.1.110.0080.00018.63
8.1.100.0070.00018.60
8.1.90.0000.00718.74
8.1.80.0000.00718.66
8.1.70.0040.00418.59
8.1.60.0000.00718.75
8.1.50.0000.00818.64
8.1.40.0040.00418.78
8.1.30.0080.00018.84
8.1.20.0050.00218.84
8.1.10.0040.00418.66
8.1.00.0040.00418.70
8.0.300.0030.00320.09
8.0.290.0050.00316.75
8.0.280.0030.00318.36
8.0.270.0050.00317.92
8.0.260.0080.00017.99
8.0.250.0030.00317.97
8.0.240.0030.00318.06
8.0.230.0030.00318.07
8.0.220.0070.00019.70
8.0.210.0080.00019.70
8.0.200.0000.00919.85
8.0.190.0090.00017.97
8.0.180.0070.00018.07
8.0.170.0000.00718.04
8.0.160.0000.00717.99
8.0.150.0070.00017.99
8.0.140.0070.00017.90
8.0.130.0000.00717.98
8.0.120.0070.00017.99
8.0.110.0030.00317.87
8.0.100.0030.00317.90
8.0.90.0000.00717.90
8.0.80.0000.00717.95
8.0.70.0000.00717.98
8.0.60.0070.00018.03
8.0.50.0030.00317.95
8.0.30.0030.00317.89
8.0.20.0040.00418.10
8.0.10.0000.00818.11
7.4.00.0170.00316.80

preferences:
36.74 ms | 403 KiB | 5 Q