3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Product { static function alloc($data) { return new static($data); } } class ProductBase extends Product { public $id, $sku2, $product_id2, $title2, $slug2, $active1; } class ProductView extends ProductBase { protected $table = 'product_offers_view'; public $id, $sku, $product_id, $title, $slug, $active, $description, $image, $store_id, $store_name, $vendor_id, $vendor_name, $category_id, $category_name, $in_stock, $store_one_price, $store_one_prev_price, $store_one_price_date, $store_one_prev_price_date, $store_one_price_delta, $store_one_in_stock, $store_two_price, $store_two_price_delta, $store_two_price_date, $store_two_prev_price_date, $store_two_prev_price, $store_two_in_stock, $store_three_price, $store_three_price_delta, $store_three_price_date, $store_three_prev_price_date, $store_three_prev_price, $store_three_in_stock; } for ($i = 0; $i < 100; $i++) { new ProductView($i); }

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.0100.01016.50
8.3.50.0100.00718.04
8.3.40.0090.00618.47
8.3.30.0070.00718.73
8.3.20.0070.00020.16
8.3.10.0040.00420.30
8.3.00.0000.00723.66
8.2.180.0170.00316.63
8.2.170.0040.01122.96
8.2.160.0070.00718.88
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00422.21
8.2.120.0110.00726.35
8.2.110.0100.00022.14
8.2.100.0070.00417.91
8.2.90.0050.00319.07
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0000.00817.80
8.2.50.0080.00018.10
8.2.40.0000.00822.23
8.2.30.0030.00519.10
8.2.20.0070.00018.12
8.2.10.0020.00518.09
8.2.00.0040.00417.93
8.1.280.0110.00425.92
8.1.270.0040.00420.28
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00020.84
8.1.230.0060.00619.15
8.1.220.0000.00917.74
8.1.210.0080.00018.77
8.1.200.0040.00417.23
8.1.190.0030.00517.10
8.1.180.0040.00418.10
8.1.170.0000.00918.53
8.1.160.0040.00418.78
8.1.150.0040.00420.14
8.1.140.0040.00417.34
8.1.130.0000.00719.08
8.1.120.0000.00717.45
8.1.110.0040.00417.45
8.1.100.0080.00017.35
8.1.90.0000.00717.39
8.1.80.0000.00717.43
8.1.70.0000.00717.40
8.1.60.0000.00817.43
8.1.50.0020.00517.50
8.1.40.0040.00417.49
8.1.30.0070.00017.62
8.1.20.0080.00017.71
8.1.10.0000.00817.50
8.1.00.0070.00017.57
8.0.300.0050.00318.77
8.0.290.0060.00616.63
8.0.280.0050.00318.45
8.0.270.0050.00217.22
8.0.260.0030.00318.46
8.0.250.0080.00016.93
8.0.240.0000.00716.88
8.0.230.0100.00016.94
8.0.220.0000.00716.80
8.0.210.0070.00016.78
8.0.200.0030.00316.92
8.0.190.0000.00716.91
8.0.180.0030.00316.83
8.0.170.0000.00716.84
8.0.160.0000.00716.75
8.0.150.0040.00416.78
8.0.140.0040.00416.89
8.0.130.0050.00013.25
8.0.120.0040.00416.79
8.0.110.0070.00016.82
8.0.100.0040.00416.75
8.0.90.0000.00716.74
8.0.80.0040.01216.78
8.0.70.0000.00816.98
8.0.60.0050.00216.82
8.0.50.0000.00716.84
8.0.30.0060.01317.03
8.0.20.0070.01117.40
8.0.10.0040.00416.92
8.0.00.0180.00316.66
7.4.330.0000.00415.55
7.4.320.0000.00616.48
7.4.300.0030.00316.48
7.4.290.0000.00716.48
7.4.280.0000.00816.48
7.4.270.0060.00316.57
7.4.260.0040.00416.46
7.4.250.0000.00816.55
7.4.240.0080.00016.47
7.4.230.0030.00316.56
7.4.220.0150.00616.52
7.4.210.0090.00516.54
7.4.200.0030.00316.60
7.4.160.0100.00616.54
7.4.150.0030.01817.40
7.4.140.0100.00917.86
7.4.130.0120.00916.38
7.4.120.0090.01116.55
7.4.110.0030.01316.51
7.4.100.0040.01416.46
7.4.90.0100.00716.57
7.4.80.0030.01319.39
7.4.70.0090.01216.53
7.4.60.0090.00916.51
7.4.50.0070.01016.48
7.4.40.0150.00616.47
7.4.30.0080.00816.49
7.4.00.0070.01014.63
7.3.330.0000.00513.28
7.3.320.0030.00313.19
7.3.310.0070.00016.43
7.3.300.0030.00316.38
7.3.290.0000.00616.20
7.3.280.0080.00916.32
7.3.270.0040.01317.40
7.3.260.0100.00716.27
7.3.250.0060.01416.46
7.3.240.0110.00916.36
7.3.230.0140.00916.68
7.3.210.0030.01316.36
7.3.200.0160.00316.25
7.3.190.0000.01716.42
7.3.180.0120.00616.57
7.3.170.0100.00616.51
7.3.160.0060.01216.35
7.3.10.0120.00216.55
7.3.00.0110.00416.59
7.2.330.0130.00316.40
7.2.320.0070.01016.77
7.2.310.0100.00716.43
7.2.300.0110.00716.59
7.2.290.0060.01016.60
7.2.130.0100.00316.91
7.2.120.0000.01416.64
7.2.110.0030.00917.00
7.2.100.0070.00716.86
7.2.90.0040.01216.50
7.2.80.0040.00416.78
7.2.70.0070.00716.75
7.2.60.0030.00816.79
7.2.50.0090.00616.96
7.2.40.0060.00617.05
7.2.30.0030.01316.94
7.2.20.0070.00316.94
7.2.10.0030.00816.95
7.2.00.0070.00316.88
7.1.250.0070.00715.57
7.1.200.0030.00915.50
7.1.100.5940.00716.10
7.1.90.5840.00716.36
7.1.80.4910.00316.30
7.1.70.6500.00715.21
7.1.60.4620.01333.31
7.1.50.4590.00333.02
7.1.40.7860.01332.50
7.1.30.9700.02032.87
7.1.20.6460.01632.76
7.1.10.6630.01014.77
7.1.00.4440.01314.83
7.0.240.4700.00315.99
7.0.230.5730.00715.64
7.0.220.4500.00315.92
7.0.210.4920.00714.68
7.0.200.5620.01014.79
7.0.190.5920.01314.80
7.0.180.5690.01214.60
7.0.170.9180.00714.45
7.0.160.8610.01014.47
7.0.150.5980.01614.21
7.0.140.6010.01314.48
7.0.130.4360.01014.57
7.0.120.3860.01714.77
7.0.110.5170.01614.52
7.0.100.5600.00314.62
7.0.90.5760.01014.54
7.0.80.6610.01314.34
7.0.70.5480.01314.19
7.0.60.5620.01014.33
7.0.50.5610.01014.36
7.0.40.3620.01014.58
7.0.30.3890.00714.60
7.0.20.3300.00714.51
7.0.10.5620.01314.43
7.0.00.3740.01014.54

preferences:
64 ms | 400 KiB | 5 Q