3v4l.org

run code in 300+ PHP versions simultaneously
<?php $blacklist = [ (object)["id" => 22,"accessid" => 2, "utype_id" => 11, "discount" => 3434, "published" => 1], (object)["id" => 23,"accessid" => 2, "utype_id" => 14, "discount" => 2, "published" => 1] ]; $rows = [ (object)["id" => 9, "type_name" => "Admin", "description" => "admin", "published" => 0], (object)["id" => 10, "type_name" => "Senior sales", "description" => "senior sales", "published" => 0], (object)["id" => 11, "type_name" => "junior sales", "description" => "junior sales", "published" => 1], (object)["id" => 14, "type_name" => "dealer", "description" => "dealer", "published" => 0], (object)["id" => 15, "type_name" => "fgdg", "description" => "dfg", "published" => 1], (object)["id" => 16, "type_name" => "fgdfg", "description" => "fgdfg", "published" => 0] ]; foreach ($blacklist as $disqualifier) { // iterate the blacklist foreach ($rows as $index => $row) { // iterate the list to be checked if ($row->id === $disqualifier->utype_id) { // if row should be disqualified unset($rows[$index]); // remove the row break; // stop checking the $rows for this $disqualifier } } } var_export($rows);

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.0110.00621.44
8.5.20.0130.00519.53
8.5.10.0110.00816.68
8.5.00.0110.01019.96
8.4.180.0150.00722.11
8.4.170.0140.00721.81
8.4.160.0100.01122.23
8.4.150.0080.00416.86
8.4.140.0120.00917.78
8.4.130.0110.00918.02
8.4.120.0110.01022.17
8.4.110.0110.00919.05
8.4.100.0090.00817.57
8.4.90.0070.00220.55
8.4.80.0090.00718.91
8.4.70.0120.00618.94
8.4.60.0100.01018.87
8.4.50.0140.00718.46
8.4.40.0040.00419.83
8.4.30.0130.00620.21
8.4.20.0160.00020.47
8.4.10.0040.00417.61
8.3.300.0140.00618.57
8.3.290.0090.01120.80
8.3.280.0120.00818.35
8.3.270.0130.00616.75
8.3.260.0100.01016.57
8.3.250.0110.00818.94
8.3.240.0100.00916.68
8.3.230.0080.01016.70
8.3.220.0050.00318.91
8.3.210.0120.00816.94
8.3.200.0050.00416.86
8.3.190.0090.01017.29
8.3.180.0090.01018.76
8.3.170.0130.00622.54
8.3.160.0100.00719.01
8.3.150.0120.00817.04
8.3.140.0120.00620.84
8.3.130.0080.00018.37
8.3.120.0080.00616.59
8.3.110.0080.00016.50
8.3.100.0070.01118.40
8.3.90.0040.00416.87
8.3.80.0060.00318.30
8.3.70.0090.00918.68
8.3.60.0070.01418.43
8.3.50.0080.00517.22
8.3.40.0120.00618.82
8.3.30.0040.01118.89
8.3.20.0000.00820.81
8.3.10.0040.00423.64
8.3.00.0040.00421.95
8.2.300.0110.00922.16
8.2.290.0090.00317.02
8.2.280.0120.00718.23
8.2.270.0140.00716.78
8.2.260.0040.00417.11
8.2.250.0070.01316.71
8.2.240.0060.00319.12
8.2.230.0080.00020.94
8.2.220.0050.00324.06
8.2.210.0070.00026.77
8.2.200.0110.00016.36
8.2.190.0130.00320.51
8.2.180.0100.01016.63
8.2.170.0150.00022.96
8.2.160.0100.00322.08
8.2.150.0110.00724.18
8.2.140.0070.00024.66
8.2.130.0050.00520.35
8.2.120.0030.00626.35
8.2.110.0060.00320.81
8.2.100.0040.00818.05
8.2.90.0040.00419.23
8.2.80.0080.00017.97
8.2.70.0000.00817.75
8.2.60.0040.00418.03
8.2.50.0000.00818.09
8.2.40.0090.00022.33
8.2.30.0000.00818.07
8.2.20.0070.00018.06
8.2.10.0040.00419.31
8.2.00.0040.00419.41
8.1.340.0110.01119.71
8.1.330.0100.00916.11
8.1.320.0110.00916.01
8.1.310.0100.00618.53
8.1.300.0000.00819.72
8.1.290.0090.00019.93
8.1.280.0120.00625.92
8.1.270.0060.00318.61
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0060.00322.05
8.1.230.0030.00719.04
8.1.220.0000.00817.79
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0080.00318.46
8.1.160.0040.00420.83
8.1.150.0040.00418.89
8.1.140.0000.00722.00
8.1.130.0050.00217.38
8.1.120.0040.00417.50
8.1.110.0000.00717.49
8.1.100.0000.00817.37
8.1.90.0000.00817.43
8.1.80.0040.00417.48
8.1.70.0030.00717.47
8.1.60.0080.00317.52
8.1.50.0050.00217.36
8.1.40.0030.00617.41
8.1.30.0030.00517.59
8.1.20.0070.00417.70
8.1.10.0040.00417.53
8.1.00.0040.00417.33
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0070.00018.32
8.0.270.0040.00416.77
8.0.260.0030.00316.80
8.0.250.0080.00017.04
8.0.240.0000.00717.10
8.0.230.0040.00416.98
8.0.220.0060.00316.98
8.0.210.0030.00517.00
8.0.200.0000.00817.04
8.0.190.0040.00416.99
8.0.180.0040.00417.00
8.0.170.0030.00516.88
8.0.160.0000.00816.82
8.0.150.0000.00716.86
8.0.140.0000.00716.83
8.0.130.0000.00613.41
8.0.120.0000.00716.82
8.0.110.0000.00716.97
8.0.100.0040.00416.98
8.0.90.0040.00416.82
8.0.80.0040.01016.93
8.0.70.0070.00016.75
8.0.60.0040.00416.99
8.0.50.0080.00016.91
8.0.30.0110.00717.10
8.0.20.0090.00917.40
8.0.10.0020.00517.05
8.0.00.0080.01116.82
7.4.330.0020.00216.89
7.4.320.0030.00316.54
7.4.300.0030.00316.66
7.4.290.0000.00816.65
7.4.280.0050.00316.46
7.4.270.0050.00216.57
7.4.260.0040.00416.63
7.4.250.0000.00816.57
7.4.240.0060.00316.44
7.4.230.0000.00716.59
7.4.220.0040.00416.63
7.4.210.0070.00716.50
7.4.200.0000.00716.62
7.4.160.0090.01116.47
7.4.140.0130.00717.86
7.4.130.0080.01516.63
7.4.120.0120.00616.47
7.4.110.0040.01316.54
7.4.100.0120.00616.63
7.4.90.0100.00716.48
7.4.80.0030.01719.39
7.4.70.0060.01216.55
7.4.60.0090.01016.46
7.4.50.0030.01216.34
7.4.40.0030.01316.46
7.4.00.0060.01014.94
7.3.330.0020.00213.25
7.3.320.0000.00513.12
7.3.310.0050.00316.38
7.3.300.0000.00716.29
7.3.290.0000.00816.29
7.3.280.0090.00816.30
7.3.260.0140.00516.54
7.3.240.0110.00516.43
7.3.230.0090.00916.29
7.3.210.0070.01016.38
7.3.200.0100.00916.38
7.3.190.0090.00916.19
7.3.180.0070.01016.63
7.3.170.0110.00616.29
7.3.160.0100.01016.39
7.3.10.0060.00316.60
7.3.00.1890.00515.75
7.2.330.0140.00716.68
7.2.320.0080.00816.45
7.2.310.0100.00716.70
7.2.300.0130.00416.79
7.2.290.0150.00316.76
7.2.130.1420.01015.96
7.2.120.1560.01215.87
7.2.110.2110.00515.98
7.2.100.2000.00815.83
7.2.90.2160.01115.94
7.2.80.1770.00816.17
7.2.70.1360.00315.93
7.2.60.1790.01015.64
7.2.50.2170.00615.80
7.2.40.2460.00915.73
7.2.30.1580.00815.84
7.2.20.1690.01015.78
7.2.10.1930.00715.91
7.2.00.1890.00315.86
7.1.250.1520.00314.80
7.0.330.2800.00713.57
5.6.380.0060.00913.73

preferences:
96.17 ms | 1507 KiB | 5 Q