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); var_dump($internalProducts); $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.60.0030.01218.30
8.3.50.0070.01316.26
8.3.40.0040.01118.91
8.3.30.0050.01018.64
8.3.20.0040.00419.21
8.3.10.0000.00820.81
8.3.00.0000.00819.68
8.2.180.0160.00616.75
8.2.170.0040.01122.96
8.2.160.0090.01219.06
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00419.70
8.2.120.0070.00026.35
8.2.110.0090.00019.29
8.2.100.0090.00317.73
8.2.90.0000.00817.75
8.2.80.0040.00418.86
8.2.70.0060.00317.91
8.2.60.0050.00517.68
8.2.50.0060.00319.48
8.2.40.0060.00320.90
8.2.30.0070.00019.45
8.2.20.0030.00618.05
8.2.10.0040.00417.91
8.2.00.0030.00519.35
8.1.280.0090.00625.92
8.1.270.0080.00023.93
8.1.260.0020.00526.35
8.1.250.0060.00928.09
8.1.240.0080.00421.98
8.1.230.0000.01220.97
8.1.220.0000.00918.43
8.1.210.0050.00319.04
8.1.200.0050.00317.38
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0000.00718.83
8.1.150.0000.00718.82
8.1.140.0070.00017.61
8.1.130.0030.00319.02
8.1.120.0040.00417.48
8.1.110.0040.00417.45
8.1.100.0000.00717.27
8.1.90.0080.00017.26
8.1.80.0050.00317.45
8.1.70.0030.00617.28
8.1.60.0080.00017.40
8.1.50.0080.00017.50
8.1.40.0030.00617.49
8.1.30.0040.00417.67
8.1.20.0050.00217.71
8.1.10.0000.00817.61
8.1.00.0050.00317.43
8.0.300.0000.00820.02
8.0.290.0000.00916.75
8.0.280.0030.00318.30
8.0.270.0040.00417.19
8.0.260.0000.01017.11
8.0.250.0070.00016.93
8.0.240.0030.00316.99
8.0.230.0040.00716.97
8.0.220.0070.00016.79
8.0.210.0040.00416.92
8.0.200.0050.00316.84
8.0.190.0060.00317.00
8.0.180.0000.00816.97
8.0.170.0090.00016.93
8.0.160.0000.00716.95
8.0.150.0040.00416.79
8.0.140.0030.00416.82
8.0.130.0000.00513.35
8.0.120.0060.00316.77
8.0.110.0040.00416.68
8.0.100.0000.00816.79
8.0.90.0030.00516.77
8.0.80.0060.00916.85
8.0.70.0000.00716.86
8.0.60.0000.00716.73
8.0.50.0000.00716.79
8.0.30.0080.01217.17
8.0.20.0160.00617.40
8.0.10.0040.00316.98
8.0.00.0100.01016.73
7.4.330.0000.00515.55
7.4.320.0030.00316.44
7.4.300.0000.00716.54
7.4.290.0000.00716.45
7.4.280.0000.00716.58
7.4.270.0030.00316.55
7.4.260.0070.00016.48
7.4.250.0070.00016.36
7.4.240.0030.00516.53
7.4.230.0000.00716.54
7.4.220.0060.00316.54
7.4.210.0110.00716.54
7.4.200.0040.00416.47
7.4.160.0080.00816.48
7.4.140.0070.01317.86
7.4.130.0120.00616.46
7.4.120.0110.00716.41
7.4.110.0150.00316.52
7.4.100.0140.00416.38
7.4.90.0060.01116.33
7.4.80.0070.01319.39
7.4.70.0120.00616.51
7.4.60.0100.00616.53
7.4.50.0120.00016.43
7.4.40.0080.01316.51
7.4.00.0060.01014.83
7.3.330.0030.00313.06
7.3.320.0000.00512.88
7.3.310.0030.00516.20
7.3.300.0030.00316.20
7.3.290.0070.00016.19
7.3.280.0090.00716.20
7.3.260.0110.00816.15
7.3.240.0090.01016.26
7.3.230.0170.00016.19
7.3.210.0080.01216.13
7.3.200.0060.00916.30
7.3.190.0160.00616.32
7.3.180.0120.00616.25
7.3.170.0080.00816.28
7.3.160.0170.00716.39
7.3.120.0060.00914.76
7.3.110.0070.01114.85
7.3.100.0030.01014.60
7.3.90.0040.00714.61
7.3.80.0110.00314.68
7.3.70.0040.01114.82
7.3.60.0000.01414.78
7.3.50.0070.00714.49
7.3.40.0110.00314.77
7.3.30.0060.00914.75
7.3.20.0060.00316.63
7.3.10.0020.00816.55
7.3.00.0050.00716.45
7.2.330.0040.01616.22
7.2.320.0030.01516.37
7.2.310.0060.01116.23
7.2.300.0030.01416.39
7.2.290.0160.00416.21
7.2.250.0100.01014.85
7.2.240.0030.01615.08
7.2.230.0000.01814.70
7.2.220.0060.00615.08
7.2.210.0060.00614.98
7.2.200.0030.00714.97
7.2.190.0060.00614.80
7.2.180.0030.00914.66
7.2.170.0100.00714.67
7.2.130.0100.00716.66
7.2.120.0090.00616.66
7.2.110.0070.00316.88
7.2.100.0070.00716.89
7.2.90.0030.01016.65
7.2.80.0050.00716.65
7.2.70.0030.00916.50
7.2.60.0940.00815.82
7.2.50.1130.00515.90
7.2.40.0970.00916.05
7.2.30.1080.00815.94
7.2.20.1170.00715.88
7.2.10.1080.00416.07
7.2.00.1170.00915.97
7.1.330.0090.00615.45
7.1.320.0030.00915.90
7.1.310.0060.00616.02
7.1.300.0070.00715.57
7.1.290.0120.00015.69
7.1.280.0030.01115.78
7.1.270.0050.00515.65
7.1.260.0000.00815.77
7.1.250.0070.00715.66
7.1.200.0030.00315.48
7.1.170.2800.01113.65
7.1.160.1850.01016.88
7.1.150.2300.01316.80
7.1.140.1860.01416.79
7.1.130.2080.01516.51
7.1.120.2150.00816.61
7.1.110.1950.01316.27
7.1.100.1750.01215.94
7.1.90.2260.00916.25
7.1.80.1830.01316.20
7.1.70.2800.01315.00
7.1.60.2610.01932.92
7.1.50.2310.01832.76
7.1.40.2340.01232.51
7.1.30.3100.01332.55
7.1.20.2790.01432.60
7.1.10.2530.01314.59
7.1.00.2490.01215.02

preferences:
66.98 ms | 400 KiB | 5 Q