3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ (object)["id" => 22,"accessid" => 2, "utype_id" => 11, "discount" => 3434, "published" => 1], (object)["id" => 23,"accessid" => 2, "utype_id" => 14, "discount" => 2, "published" => 1] ]; $array2 = [ (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] ]; $utype_ids = []; foreach ($array1 as $item) { $utype_ids[$item->utype_id] = 1; } var_export(array_filter( $array2, function($v) use ($utype_ids) { return !isset($utype_ids[$v->id]); } ));

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.0100.00821.02
8.5.20.0110.00719.69
8.5.10.0090.01016.95
8.5.00.0140.00720.34
8.4.180.0110.01319.77
8.4.170.0130.00923.94
8.4.160.0150.00823.11
8.4.150.0070.00516.90
8.4.140.0120.00917.80
8.4.130.0130.00817.82
8.4.120.0080.01120.58
8.4.110.0140.00622.46
8.4.100.0120.00919.52
8.4.90.0140.00718.32
8.4.80.0050.00519.72
8.4.70.0110.01018.07
8.4.60.0110.00918.62
8.4.50.0130.00818.05
8.4.40.0040.00419.47
8.4.30.0120.00820.54
8.4.20.0070.01320.44
8.4.10.0130.00718.02
8.3.300.0120.00920.88
8.3.290.0100.01020.74
8.3.280.0100.01118.65
8.3.270.0100.01016.68
8.3.260.0120.00716.78
8.3.250.0140.00519.05
8.3.240.0090.01016.62
8.3.230.0100.00416.73
8.3.220.0110.00617.43
8.3.210.0120.00716.80
8.3.200.0030.00516.85
8.3.190.0080.01116.66
8.3.180.0120.00716.62
8.3.170.0120.00618.98
8.3.160.0060.01318.39
8.3.150.0120.00619.15
8.3.140.0120.00317.17
8.3.130.0040.00418.50
8.3.120.0030.00620.61
8.3.110.0030.00720.94
8.3.100.0060.00324.06
8.3.90.0080.00026.77
8.3.80.0100.00317.97
8.3.70.0110.00416.63
8.3.60.0100.01018.31
8.3.50.0130.00317.97
8.3.40.0070.00718.97
8.3.30.0090.00618.70
8.3.20.0030.00620.85
8.3.10.0040.00423.65
8.3.00.0040.00423.67
8.2.300.0090.01220.33
8.2.290.0120.00720.51
8.2.280.0060.00216.95
8.2.270.0090.00917.17
8.2.260.0140.00419.18
8.2.250.0080.00018.52
8.2.240.0000.00820.47
8.2.230.0000.01522.58
8.2.220.0030.00637.54
8.2.210.0050.00226.77
8.2.200.0000.00918.54
8.2.190.0090.00620.41
8.2.180.0070.01116.75
8.2.170.0070.00722.96
8.2.160.0100.00322.12
8.2.150.0110.00724.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0110.00017.75
8.2.110.0060.00320.23
8.2.100.0040.00817.97
8.2.90.0050.00317.88
8.2.80.0000.00818.91
8.2.70.0040.00417.63
8.2.60.0050.00317.63
8.2.50.0030.00617.55
8.2.40.0040.00421.12
8.2.30.0040.00419.32
8.2.20.0070.00018.08
8.2.10.0040.00419.36
8.2.00.0000.00819.36
8.1.340.0070.01217.67
8.1.330.0120.00722.13
8.1.320.0120.00715.88
8.1.310.0110.00718.35
8.1.300.0100.00719.66
8.1.290.0100.00030.84
8.1.280.0070.01725.92
8.1.270.0030.00624.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0090.00023.69
8.1.230.0040.00721.09
8.1.220.0000.00817.79
8.1.210.0090.00018.77
8.1.200.0030.00517.35
8.1.190.0090.00017.35
8.1.180.0050.00318.10
8.1.170.0040.00418.87
8.1.160.0070.00018.97
8.1.150.0030.00518.83
8.1.140.0000.00722.17
8.1.130.0040.00420.16
8.1.120.0040.00417.46
8.1.110.0040.00417.51
8.1.100.0080.00017.39
8.1.90.0040.00417.46
8.1.80.0000.00717.49
8.1.70.0000.00917.39
8.1.60.0070.00317.65
8.1.50.0040.00417.42
8.1.40.0060.00317.42
8.1.30.0080.00017.73
8.1.20.0030.00617.65
8.1.10.0000.00717.54
8.1.00.0060.00317.44
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00718.53
8.0.270.0030.00317.31
8.0.260.0060.00018.51
8.0.250.0030.00317.01
8.0.240.0000.00616.92
8.0.230.0030.00317.00
8.0.220.0040.00417.02
8.0.210.0070.00017.00
8.0.200.0000.00716.99
8.0.190.0040.00417.03
8.0.180.0040.00416.89
8.0.170.0030.00616.93
8.0.160.0040.00417.02
8.0.150.0000.00716.89
8.0.140.0040.00416.99
8.0.130.0060.00013.41
8.0.120.0040.00417.03
8.0.110.0080.00016.89
8.0.100.0070.00016.85
8.0.90.0040.00416.84
8.0.80.0060.00916.98
8.0.70.0040.00416.86
8.0.60.0030.00617.01
8.0.50.0000.00816.84
8.0.30.0130.00717.12
8.0.20.0070.01117.40
8.0.10.0060.00317.11
8.0.00.0090.01017.09
7.4.330.0000.00516.81
7.4.320.0060.00016.66
7.4.300.0070.00016.60
7.4.290.0000.00716.64
7.4.280.0070.00016.35
7.4.270.0060.00016.58
7.4.260.0000.00716.49
7.4.250.0000.00716.50
7.4.240.0000.00816.52
7.4.230.0040.00416.50
7.4.220.0040.00416.68
7.4.210.0080.00916.56
7.4.200.0050.00316.41
7.4.160.0110.00816.48
7.4.140.0060.01317.86
7.4.130.0160.00316.65
7.4.120.0170.01516.50
7.4.110.0140.00316.52
7.4.100.0090.01216.46
7.4.90.0150.00316.52
7.4.80.0120.00819.39
7.4.70.0140.00316.48
7.4.60.0070.01616.52
7.4.50.0030.00916.64
7.4.40.0060.01216.59
7.4.00.0100.00315.03
7.3.330.0050.00013.45
7.3.320.0030.00313.26
7.3.310.0040.00416.54
7.3.300.0070.00016.48
7.3.290.0000.00716.29
7.3.280.0130.00616.42
7.3.260.0100.00816.48
7.3.240.0120.00716.57
7.3.230.0110.00516.37
7.3.210.0000.01716.50
7.3.200.0070.01016.68
7.3.190.0000.02116.61
7.3.180.0100.01016.66
7.3.170.0090.00916.44
7.3.160.0060.01116.50
7.3.00.1740.01014.84
7.2.330.0070.01116.64
7.2.320.0150.00316.77
7.2.310.0120.00416.64
7.2.300.0110.00616.41
7.2.290.0140.00516.48
7.2.130.3590.00714.75
7.2.120.1950.01015.10
7.2.110.2950.01014.74
7.2.100.2200.00314.82
7.2.90.1980.01015.14
7.2.80.1730.01414.98
7.2.70.1930.00714.82
7.2.60.3200.00314.67
7.2.50.2200.01314.80
7.2.40.2180.01314.99
7.2.30.2150.01014.59
7.2.20.2030.00314.93
7.2.10.2200.01414.45
7.2.00.2380.01314.90
7.1.250.2850.00713.84
7.0.330.2790.01013.46
5.6.380.0030.01214.24

preferences:
99.84 ms | 1502 KiB | 5 Q