3v4l.org

run code in 300+ PHP versions simultaneously
<?php $externalProducts = json_decode('{ "Filter": { "Title": "All Products" }, "Products": [{ "Type": "Jacket", "Price": 75, "ExpiryDate": "2018-06-30", "StockNumber": "180220/003", "Created": "2018-02-20 12:24:06", "Modified": "2018-05-30 02:00:23" }, { "Type": "Jeans", "Price": 150, "ExpiryDate": "2018-06-30", "StockNumber": "180221/004", "Created": "2017-08-10 15:11:44", "Modified": "2018-05-30 02:00:22" }, { "Type": "Jacket", "Price": 240, "ExpiryDate": "2018-06-30", "StockNumber": "150804/012", "Created": "2015-08-04 17:03:42", "Modified": "2018-05-30 02:00:22" } ] }',true); $internalProducts = json_decode('"localProducts": [{ "title": "Fur Coat", "id": 16526, "created_at": "2018-05-17T10:15:45Z", "updated_at": "2018-05-17T10:15:45Z", "sku": "180514/001", "price": "75.00", "regular_price": "75.00", "categories": [ "Jackets", ], }, { "title": "Ripped Jeans", "id": 16527, "created_at": "2018-05-17T10:15:45Z", "updated_at": "2018-05-17T10:15:45Z", "sku": "180221/004", "price": "150.00", "regular_price": "150.00", "categories": [ "Jeans", ], }, { "title": "Leather Jacket", "id": 16528, "created_at": "2018-05-17T10:15:45Z", "updated_at": "2018-05-17T10:15:45Z", "sku": "150804/012", "price": "240.00", "regular_price": "240.00", "categories": [ "Jackets", ], } ]',true); $extstock = array_column($externalProducts, "StockNumber"); $intsku = array_column($internalProducts, "sku"); var_dump(array_diff($extstock, $intsku));

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.3.70.0070.00718.27
8.3.60.0040.01218.30
8.3.50.0000.01416.33
8.3.40.0070.00718.84
8.3.30.0140.00018.61
8.3.20.0030.00618.98
8.3.10.0060.00320.91
8.3.00.0030.00619.76
8.2.190.0090.00616.75
8.2.180.0130.01016.75
8.2.170.0060.00922.96
8.2.160.0150.00619.06
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00719.63
8.2.120.0040.00426.35
8.2.110.0040.00420.98
8.2.100.0120.00017.91
8.2.90.0090.00017.88
8.2.80.0040.00718.68
8.2.70.0030.00617.92
8.2.60.0060.00317.93
8.2.50.0030.00519.23
8.2.40.0030.00620.96
8.2.30.0040.00419.39
8.2.20.0030.00518.09
8.2.10.0040.00418.08
8.2.00.0040.00419.40
8.1.280.0090.00625.92
8.1.270.0040.00423.92
8.1.260.0000.00826.35
8.1.250.0060.00328.09
8.1.240.0030.00623.78
8.1.230.0040.00822.73
8.1.220.0060.00318.47
8.1.210.0030.00520.63
8.1.200.0000.00917.23
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0080.00018.65
8.1.160.0060.00318.82
8.1.150.0040.00418.73
8.1.140.0040.00417.66
8.1.130.0030.00318.90
8.1.120.0000.00717.44
8.1.110.0070.00017.46
8.1.100.0050.00217.36
8.1.90.0070.00017.32
8.1.80.0040.00417.31
8.1.70.0060.00317.47
8.1.60.0040.00417.47
8.1.50.0040.00417.56
8.1.40.0060.00317.55
8.1.30.0050.00317.61
8.1.20.0030.00517.57
8.1.10.0050.00217.61
8.1.00.0000.00717.53
8.0.300.0070.00019.91
8.0.290.0060.00616.75
8.0.280.0070.00018.41
8.0.270.0030.00317.19
8.0.260.0090.00017.27
8.0.250.0030.00316.88
8.0.240.0000.00716.92
8.0.230.0100.00016.86
8.0.220.0030.00316.94
8.0.210.0000.00716.91
8.0.200.0000.00716.95
8.0.190.0040.00416.94
8.0.180.0040.00416.92
8.0.170.0030.00616.95
8.0.160.0000.00816.91
8.0.150.0030.00316.84
8.0.140.0080.00016.88
8.0.130.0000.00513.38
8.0.120.0000.00816.83
8.0.110.0000.00816.79
8.0.100.0000.00716.82
8.0.90.0000.00716.81
8.0.80.0080.01016.95
8.0.70.0040.00416.74
8.0.60.0040.00416.82
8.0.50.0000.00716.79
8.0.30.0100.00717.10
8.0.20.0150.00417.40
8.0.10.0040.00416.86
8.0.00.0090.00916.80
7.4.330.0000.00515.55
7.4.320.0000.00616.50
7.4.300.0070.00016.54
7.4.290.0040.00416.37
7.4.280.0000.00716.57
7.4.270.0070.00016.48
7.4.260.0040.00416.47
7.4.250.0080.00016.52
7.4.240.0040.00416.49
7.4.230.0070.00016.65
7.4.220.0000.00716.65
7.4.210.0100.00616.55
7.4.200.0040.00416.54
7.4.160.0070.01016.52
7.4.140.0090.00917.86
7.4.130.0100.00716.48
7.4.120.0100.00816.46
7.4.110.0120.00916.66
7.4.100.0040.01316.35
7.4.90.0140.00316.39
7.4.80.0130.00319.39
7.4.70.0110.01116.28
7.4.60.0150.00016.55
7.4.50.0100.00316.36
7.4.40.0030.01316.46
7.4.00.0070.00714.86
7.3.330.0000.00613.19
7.3.320.0030.00313.05
7.3.310.0000.00716.01
7.3.300.0030.00316.22
7.3.290.0030.00316.20
7.3.280.0060.01216.19
7.3.260.0070.01016.24
7.3.240.0120.00916.43
7.3.230.0100.00716.21
7.3.210.0090.00916.23
7.3.200.0060.00916.23
7.3.190.0030.01216.11
7.3.180.0060.01016.06
7.3.170.0160.00016.17
7.3.160.0050.01216.31
7.2.330.0060.01216.60
7.2.320.0140.00316.43
7.2.310.0060.01516.47
7.2.300.0070.01116.60
7.2.290.0130.00516.34
7.2.60.5050.00714.84
7.2.50.2130.00814.46
7.2.40.2370.01315.41
7.2.30.2290.01415.20
7.2.20.1380.01215.11
7.2.10.2170.01415.40
7.2.00.2190.01115.38
7.1.200.0030.01015.73
7.1.170.2040.01013.77
7.1.160.2500.01616.69
7.1.150.2280.01316.77
7.1.140.2520.01416.78
7.1.130.2550.01216.63
7.1.120.2090.01516.63
7.1.110.2080.01016.29
7.1.100.2360.01116.08
7.1.90.2650.01316.46
7.1.80.1970.01116.21
7.1.70.2210.01015.32
7.1.60.1890.01133.25
7.1.50.2260.01632.92
7.1.40.1770.01432.67
7.1.30.2430.01432.61
7.1.20.2480.02232.76
7.1.10.1810.01114.45
7.1.00.2080.01115.06

preferences:
31.54 ms | 401 KiB | 5 Q