3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dataItems = [ [ 'id' => 1, 'serial' => "XXXXXXAA1", 'pd_item_info' => [ 'id' => 1, 'quantity' => 5, 'ipo_item_pml_info' => [ 'id' => 1, 'product_name' => 'Keyboard' ] ] ], [ 'id' => 33, 'serial' => "XXXXXXFOO", 'pd_item_info' => [ 'id' => 33, 'quantity' => 100, 'ipo_item_pml_info' => [ 'id' => 33, 'product_name' => 'Speaker' ] ] ], [ 'id' => 2, 'serial' => "XXXXXXAA2", 'pd_item_info' => [ 'id' => 2, 'quantity' => 10, 'ipo_item_pml_info' => [ 'id' => 2, 'product_name' => 'Keyboard' ] ] ] ]; $result = []; foreach ( $dataItems as [ 'pd_item_info' => ['ipo_item_pml_info' => ['product_name' => $name]], 'serial' => $result[$name][] ] ); 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.10.0110.00916.61
8.5.00.0080.01420.02
8.4.150.0010.00114.05
8.4.140.0130.01117.39
8.4.130.0110.00918.80
8.4.120.0050.00324.02
8.4.110.0060.00418.78
8.4.100.0130.00818.51
8.4.90.0140.00620.55
8.4.80.0100.01017.81
8.4.70.0090.00917.73
8.4.60.0100.01117.53
8.4.50.0090.01220.47
8.4.40.0100.01019.24
8.4.30.0130.00620.47
8.4.20.0080.01221.22
8.4.10.0040.00419.30
8.3.280.0130.00718.42
8.3.270.0110.00916.69
8.3.260.0090.01016.68
8.3.250.0100.00918.95
8.3.240.0130.00716.93
8.3.230.0130.00616.86
8.3.220.0040.00518.93
8.3.210.0090.01216.29
8.3.200.0040.00416.77
8.3.190.0120.00818.88
8.3.180.0110.00819.12
8.3.170.0100.00717.29
8.3.160.0130.00618.39
8.3.150.0040.01117.10
8.3.140.0000.00816.43
8.3.130.0310.01116.71
8.3.120.0250.01316.27
8.3.110.0350.00616.24
8.3.100.0440.00916.30
8.3.90.0390.00716.31
8.3.80.0450.00316.71
8.3.70.0360.01016.71
8.3.60.0360.01116.86
8.3.50.0390.00416.27
8.3.40.0290.01117.54
8.3.30.0300.00717.21
8.3.20.0300.00717.50
8.3.10.0230.01617.31
8.3.00.0340.00317.46
8.2.290.0080.01020.48
8.2.280.0150.00416.54
8.2.270.0110.00416.70
8.2.260.0120.00617.41
8.2.250.0290.00716.58
8.2.240.0290.00716.22
8.2.230.0310.00916.33
8.2.220.0330.00916.79
8.2.210.0350.00616.40
8.2.200.0290.00816.58
8.2.190.0210.01816.24
8.2.180.0160.01916.61
8.2.170.0320.00317.62
8.2.160.0290.00617.55
8.2.150.0310.01017.45
8.2.140.0260.01517.48
8.2.130.0370.00717.55
8.2.120.0310.00617.61
8.2.110.0290.01017.66
8.2.100.0240.01717.49
8.2.90.0330.00717.68
8.2.80.0360.00817.42
8.2.70.0320.01117.38
8.2.60.0370.00017.61
8.2.50.0170.01017.29
8.2.40.0330.00317.73
8.2.30.0270.01117.48
8.2.20.0230.01317.34
8.2.10.0230.01417.41
8.2.00.0210.01817.29
8.1.330.0110.00922.04
8.1.320.0080.01116.07
8.1.310.0080.00616.63
8.1.300.0350.01016.18
8.1.290.0240.01616.18
8.1.280.0310.00816.18
8.1.270.0380.00417.23
8.1.260.0370.00317.55
8.1.250.0360.01117.11
8.1.240.0300.01017.34
8.1.230.0310.00917.33
8.1.220.0390.00417.21
8.1.210.0310.00417.13
8.1.200.0250.00717.26
8.1.190.0260.00916.91
8.1.180.0330.01117.07
8.1.170.0270.00917.07
8.1.160.0280.00417.37
8.1.150.0220.00617.34
8.1.140.0160.00717.21
8.1.130.0100.00717.24
8.1.120.0200.00417.31
8.1.110.0090.00917.10
8.1.100.0200.00717.12
8.1.90.0120.00417.10
8.1.80.0170.00017.30
8.1.70.0270.00517.33
8.1.60.0300.00817.40
8.1.50.0250.01417.23
8.1.40.0350.00417.16
8.1.30.0310.01417.14
8.1.20.0320.00517.44
8.1.10.0280.00617.38
8.1.00.0330.00717.14

preferences:
34.26 ms | 403 KiB | 5 Q