3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'data' => [ [ 'attribute_set' => 'default', 'description' => 'productdescription', 'is_in_stock' => 1, 'meta_description' => 'Product meta description', 'meta_keyword' => 'Product meta keyword', 'meta_title' => 'Product meta title', 'name' => 'myproduct6', 'price' => 100, 'qty' => 1000, 're_skus' => 'sdfefwef', 'short_description' => 'this is a short descriptio', 'sku' => 'myproduct_surabhi7', 'status' => 1, 'store' => 'admin', 'tax_class_id' => 4, 'type' => 'simple', 'url_key' => 'my-product', 'url_path' => 'my-product.html', 'visibility' => 4, 'weight' => 10, ], [ 'attribute_set' => 'default', 'description' => 'productdescription', 'is_in_stock' => 1, 'meta_description' => 'Product meta description', 'meta_keyword' => 'Product meta keyword', 'meta_title' => 'Product meta title', 'name' => 'myproduct6', 'price' => 100, 'qty' => 1000, 're_skus' => 'sdfefwef', 'short_description' => 'this is a short descriptio', 'sku' => 'myproduct_surabhi7', 'status' => 1, 'store' => 'admin', 'tax_class_id' => 4, 'type' => 'simple', 'url_key' => 'my-product', 'url_path' => 'my-product.html', 'visibility' => 4, 'weight' => 10, ] ] ] ]; $result = []; foreach ($array[0]['data'] as $i => $data) { $result[$i][$i] = $data; } var_export($result);

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.00.0120.00919.67
8.4.150.0030.00014.05
8.4.140.0140.00717.75
8.4.130.0080.00318.66
8.4.120.0100.00820.84
8.4.110.0070.00320.71
8.4.100.0070.00417.73
8.4.90.0140.00620.39
8.4.80.0040.00422.51
8.4.70.0070.00818.79
8.4.60.0130.00720.49
8.4.50.0090.00420.23
8.4.40.0060.00917.77
8.4.30.0100.01020.42
8.4.20.0060.00319.23
8.4.10.0060.00319.25
8.3.280.0150.00818.51
8.3.270.0130.01016.79
8.3.260.0090.01016.60
8.3.250.0140.00517.32
8.3.240.0100.01016.54
8.3.230.0120.00816.21
8.3.220.0090.00918.77
8.3.210.0120.01016.76
8.3.200.0050.00416.52
8.3.190.0110.01117.25
8.3.180.0100.00919.16
8.3.170.0080.00017.25
8.3.160.0060.01218.29
8.3.150.0170.00317.23
8.3.140.0070.01118.35
8.3.130.0060.00318.35
8.3.120.0170.00816.27
8.3.110.0120.00516.07
8.3.100.0100.01016.45
8.3.90.0100.01016.23
8.3.80.0100.01016.66
8.3.70.0210.00016.59
8.3.60.0220.00016.38
8.3.50.0150.00516.69
8.3.40.0140.00617.45
8.3.30.0170.00017.41
8.3.20.0140.00417.32
8.3.10.0090.00717.39
8.3.00.0070.01016.98
8.2.290.0050.00317.16
8.2.280.0110.00920.33
8.2.270.0150.00318.35
8.2.260.0090.00016.94
8.2.250.0140.00316.45
8.2.240.0100.00716.36
8.2.230.0200.00016.57
8.2.220.0160.00416.24
8.2.210.0160.00416.05
8.2.200.0150.00516.44
8.2.190.0130.00716.42
8.2.180.0140.00516.53
8.2.170.0200.00017.58
8.2.160.0160.00417.46
8.2.150.0130.00917.46
8.2.140.0150.00617.50
8.2.130.0100.01017.30
8.2.120.0270.00017.14
8.2.110.0220.00017.53
8.2.100.0180.00317.25
8.2.90.0210.00017.56
8.2.80.0200.00017.40
8.2.70.0170.00317.50
8.2.60.0090.00917.18
8.2.50.0120.00617.11
8.2.40.0160.00317.54
8.2.30.0090.00917.41
8.2.20.0130.00417.56
8.2.10.0130.00417.32
8.2.00.0130.00517.25
8.1.330.0130.00617.77
8.1.320.0120.00715.97
8.1.310.0040.00416.58
8.1.300.0090.00916.12
8.1.290.0170.00016.05
8.1.280.0110.00816.05
8.1.270.0190.00317.11
8.1.260.0080.00817.19
8.1.250.0080.00818.81
8.1.240.0100.01017.39
8.1.230.0140.00517.24
8.1.220.0070.00717.21
8.1.210.0130.00317.18
8.1.200.0080.00817.18
8.1.190.0170.00016.88
8.1.180.0190.00016.97
8.1.170.0130.00317.25
8.1.160.0160.00016.95
8.1.150.0120.00417.06
8.1.140.0170.00017.10
8.1.130.0120.00517.04
8.1.120.0160.00017.36
8.1.110.0160.00016.96
8.1.100.0150.00017.26
8.1.90.0120.00417.10
8.1.80.0150.00517.20
8.1.70.0100.00717.06
8.1.60.0130.00617.23
8.1.50.0090.00917.22
8.1.40.0130.00617.20
8.1.30.0150.00417.34
8.1.20.0160.00317.36
8.1.10.0120.00617.23
8.1.00.0180.00017.12

preferences:
34.2 ms | 403 KiB | 5 Q