3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 0 => [ "SERIAL" => "qwerty", "BRANCH" => "TEST1" ], 1 => [ "SERIAL" => "qwer", "BRANCH" => "TEST1" ], 2 => [ // RETURN THIS AS ERROR AS THE BRANCH "TEST1" has already "qwerty" serial "SERIAL" => "qwerty", "BRANCH" => "TEST2" ], 3 => [ "SERIAL" => "qwerty", "BRANCH" => "TEST1" ], 4 => [ // RETURN THIS AS ERROR AS THE BRANCH "TEST1" has already "qwerty" serial "SERIAL" => "qwerty", "BRANCH" => "TEST3" ], ]; foreach($arr as $sub){ $result[$sub['SERIAL']][] = $sub['BRANCH']; } foreach($result as $branches){ $unique = array_unique($branches); if(count($unique) >1){ var_dump("ERROR:", array_slice($unique,1)); } }

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.120.0090.01024.00
8.4.110.0040.00418.82
8.4.100.0070.00217.57
8.4.90.0130.00918.62
8.4.80.0120.00419.31
8.4.70.0110.00917.89
8.4.60.0160.00818.24
8.4.50.0140.00617.91
8.4.40.0080.01219.27
8.4.30.0110.00722.62
8.4.20.0170.00320.32
8.4.10.0090.00022.24
8.3.250.0050.00316.75
8.3.240.0120.00717.02
8.3.230.0100.00816.57
8.3.220.0070.00317.18
8.3.210.0030.00516.59
8.3.200.0110.00716.54
8.3.190.0090.01016.66
8.3.180.0120.00718.52
8.3.170.0120.00616.74
8.3.160.0040.01418.43
8.3.150.0140.00417.16
8.3.140.0060.00317.12
8.3.130.0080.00018.50
8.3.120.0090.00618.84
8.3.110.0080.00320.94
8.3.100.0080.00016.91
8.3.90.0080.00026.77
8.3.80.0090.00018.43
8.3.70.0140.00718.43
8.3.60.0110.01118.30
8.3.50.0090.00817.27
8.3.40.0070.01118.60
8.3.30.0110.00718.74
8.3.20.0080.00022.65
8.3.10.0050.00323.66
8.3.00.0040.00422.57
8.2.290.0110.00920.59
8.2.280.0080.00719.99
8.2.270.0090.00916.38
8.2.260.0040.00418.38
8.2.250.0130.00616.73
8.2.240.0150.00320.86
8.2.230.0040.00422.58
8.2.220.0000.00824.06
8.2.210.0050.00326.77
8.2.200.0090.00018.23
8.2.190.0110.01118.52
8.2.180.0040.01118.29
8.2.170.0140.00322.96
8.2.160.0070.00720.27
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.01019.77
8.2.110.0030.00622.26
8.2.100.0090.00317.91
8.2.90.0060.00318.34
8.2.80.0030.00619.23
8.2.70.0000.00817.91
8.2.60.0000.00818.22
8.2.50.0070.00019.32
8.2.40.0000.00819.35
8.2.30.0040.00419.37
8.2.20.0070.00018.21
8.2.10.0000.00819.27
8.2.00.0040.00419.31
8.1.330.0120.00922.15
8.1.320.0110.01015.98
8.1.310.0040.00418.59
8.1.300.0090.00018.00
8.1.290.0080.00018.88
8.1.280.0070.01025.92
8.1.270.0080.00020.52
8.1.260.0090.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00623.97
8.1.230.0100.00020.97
8.1.220.0060.00317.76
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0030.00617.23
8.1.180.0000.00818.89
8.1.170.0030.00618.43
8.1.160.0000.00819.01
8.1.150.0030.00618.92
8.1.140.0040.00420.71
8.1.130.0070.00020.14
8.1.120.0050.00317.51
8.1.110.0070.00017.50
8.1.100.0000.00717.44
8.1.90.0040.00417.46
8.1.80.0040.00417.36
8.1.70.0000.00817.30
8.1.60.0040.00417.58
8.1.50.0080.00017.49
8.1.40.0030.00617.56
8.1.30.0040.00417.61
8.1.20.0000.00817.61
8.1.10.0040.00417.47
8.1.00.0000.00817.33
8.0.300.0060.00320.00
8.0.290.0000.00916.63
8.0.280.0030.00318.37
8.0.270.0030.00517.32
8.0.260.0030.00320.07
8.0.250.0030.00316.93
8.0.240.0000.00716.94
8.0.230.0030.00316.89
8.0.220.0040.00416.90
8.0.210.0070.00016.90
8.0.200.0030.00316.99
8.0.190.0000.00816.84
8.0.180.0000.00816.95
8.0.170.0060.00316.88
8.0.160.0050.00316.97
8.0.150.0070.00016.87
8.0.140.0030.00316.83
8.0.130.0050.00013.37
8.0.120.0050.00316.80
8.0.110.0040.00416.90
8.0.100.0050.00316.79
8.0.90.0090.00016.95
8.0.80.0130.00316.82
8.0.70.0050.00316.84
8.0.60.0040.00416.95
8.0.50.0020.00516.87
8.0.30.0090.00817.12
8.0.20.0140.00517.08
8.0.10.0020.00517.07
8.0.00.0170.00316.50
7.4.330.0000.00415.55
7.4.320.0030.00316.40
7.4.300.0030.00316.55
7.4.290.0030.00316.48
7.4.280.0070.00016.63
7.4.270.0000.00716.60
7.4.260.0060.00013.29
7.4.250.0030.00316.36
7.4.240.0040.00416.55
7.4.230.0030.00316.70
7.4.220.0060.00116.43
7.4.210.0100.00616.52
7.4.200.0030.00516.44
7.4.130.0130.01016.62
7.4.120.0110.00716.58
7.4.110.0100.00816.47
7.4.100.0170.00416.52
7.4.90.0120.00616.48
7.4.80.0040.01419.39
7.4.70.0100.00716.41
7.4.60.0120.00616.43
7.4.50.0090.00916.45
7.4.40.0160.00016.52
7.4.00.0100.00714.91
7.3.330.0030.00316.24
7.3.320.0070.00013.12
7.3.310.0040.00416.36
7.3.300.0050.00216.34
7.3.290.0000.00716.30
7.3.280.0040.01616.37
7.3.260.0120.00816.54
7.3.240.0100.00816.40
7.3.230.0110.00616.57
7.3.210.0080.01416.63
7.3.200.0080.00816.43
7.3.190.0110.01116.48
7.3.180.0100.00716.54
7.3.170.0100.00716.42
7.3.160.0130.00516.35
7.3.120.0000.01314.91
7.3.110.0030.01414.45
7.3.100.0060.00614.67
7.3.90.0070.00614.67
7.3.80.0050.01014.71
7.3.70.0030.01214.78
7.3.60.0060.00914.80
7.3.50.0070.00814.61
7.3.40.0040.01014.71
7.3.30.0050.00714.54
7.3.20.0060.00715.75
7.3.10.0070.00715.72
7.3.00.0020.01415.82
7.2.330.0090.00916.80
7.2.320.0130.01016.50
7.2.310.0100.00716.59
7.2.300.0100.00716.51
7.2.290.0100.00716.71
7.2.240.0040.01114.81
7.2.230.0030.01114.93
7.2.220.0060.01014.98
7.2.210.0080.00815.24
7.2.200.0130.00214.97
7.2.190.0050.01114.94
7.2.180.0090.00914.80
7.2.170.0070.00814.89
7.2.160.0080.00714.98
7.2.150.0070.01215.90
7.2.140.0050.00915.94
7.2.130.0040.01115.81
7.2.120.0050.00915.90
7.2.110.0050.01015.96
7.2.100.0090.00915.90
7.2.90.0120.00816.11
7.2.80.0110.00615.84
7.2.70.0110.00916.06
7.2.60.0040.01415.70
7.2.50.0080.01115.89
7.2.40.0060.00916.02
7.2.30.0100.00616.04
7.2.20.0070.00716.05
7.2.10.0080.00715.92
7.2.00.0010.01215.95
7.1.330.0000.01615.82
7.1.320.0080.00614.65
7.1.310.0080.00514.88
7.1.300.0080.01014.91
7.1.290.0110.00814.83
7.1.280.0080.00514.83
7.1.270.0090.00614.71
7.1.260.0090.00514.80
7.1.250.0070.00814.87

preferences:
128.92 ms | 403 KiB | 5 Q