3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array ( '0' => Array ( 'created_at' => 1991, 'updated_at' => 1992, 'customer_name' => 'john doe', 'line_items' => Array ( '0' => Array ( 'name' => 'Hello world poduct', 'price' => 800.00, 'id' => 123, 'quantity' => 2 ), '1' => Array ( 'name' => 'Hello world product 2', 'price' => 100.00, 'id' => 456, 'quantity' => 1 ) ) ), '1' => Array ( 'created_at' => 1992, 'updated_at' => 1993, 'customer_name' => 'Guido van Rossum', 'line_items' => Array ( '0' => Array ( 'name' => 'Hello world product', 'price' => 800.00, 'id' => 123, 'quantity' => 2 ), '1' => Array ( 'name' => 'Hello world poduct 2', 'price' => 100.00, 'id' => 456, 'quantity' => 3 ), '2' => Array ( 'name' => 'Hello world poduct 3', 'price' => 400.00, 'id' => 116, 'quantity' => 5 ) ) ) ); var_export( array_column( array_merge( ...array_column($array,'line_items') ), 'quantity' ) );

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.4.130.0100.00417.79
8.4.120.0110.00820.54
8.4.110.0100.01022.22
8.4.100.0140.00717.53
8.4.90.0130.00817.53
8.4.80.0110.00917.55
8.4.70.0110.00919.24
8.4.60.0090.00918.55
8.4.50.0070.00220.29
8.4.40.0100.01019.37
8.4.30.0060.00318.83
8.4.20.0060.00925.92
8.4.10.0130.00323.86
8.3.260.0100.01116.23
8.3.250.0050.00318.71
8.3.240.0130.00616.51
8.3.230.0110.00816.29
8.3.220.0110.00318.41
8.3.210.0080.01116.49
8.3.200.0070.00216.40
8.3.190.0030.00516.75
8.3.180.0080.00918.36
8.3.170.0000.00717.00
8.3.160.0070.01120.11
8.3.150.0040.01816.71
8.3.140.0160.00317.19
8.3.130.0030.00616.44
8.3.120.0050.00520.57
8.3.110.0040.00420.94
8.3.100.0060.00316.38
8.3.90.0050.00326.77
8.3.80.0090.00018.18
8.3.70.0190.00517.27
8.3.60.0210.00518.08
8.3.50.0120.00219.19
8.3.40.0140.00519.03
8.3.30.0110.00918.26
8.3.20.0180.00021.08
8.3.10.0090.00521.32
8.3.00.0090.00722.06
8.2.290.0120.00620.23
8.2.280.0140.00418.60
8.2.270.0060.01316.98
8.2.260.0120.00616.57
8.2.250.0090.00916.69
8.2.240.0070.00316.93
8.2.230.0000.00822.58
8.2.220.0090.00024.06
8.2.210.0050.00326.77
8.2.200.0000.00916.38
8.2.190.0150.00917.27
8.2.180.0120.00621.95
8.2.170.0160.00520.47
8.2.160.0230.00120.47
8.2.150.0150.00321.82
8.2.140.0150.00221.32
8.2.130.0110.00422.06
8.2.120.0110.00522.06
8.2.110.0140.00618.53
8.2.100.0160.00217.88
8.2.90.0130.00617.92
8.2.80.0080.01017.97
8.2.70.0160.00238.22
8.2.60.0120.00638.31
8.2.50.0130.00438.27
8.2.40.0140.00338.30
8.2.30.0100.00538.45
8.2.20.0130.00338.83
8.2.10.0120.00438.43
8.2.00.0190.00238.33
8.1.330.0100.00921.86
8.1.320.0120.00716.04
8.1.310.0140.00318.11
8.1.300.0090.00016.51
8.1.290.0090.00030.84
8.1.280.0200.00121.95
8.1.270.0140.00221.32
8.1.260.0130.00522.16
8.1.250.0120.00323.03
8.1.240.0110.00420.20
8.1.230.0130.00519.47
8.1.220.0060.00817.88
8.1.210.0090.00819.10
8.1.200.0060.01038.21
8.1.190.0120.00538.17
8.1.180.0120.00538.46
8.1.170.0120.00638.77
8.1.160.0110.00438.68
8.1.150.0070.00938.59
8.1.140.0110.00538.24
8.1.130.0130.00638.22
8.1.120.0150.00338.25
8.1.110.0150.00438.25
8.1.100.0140.00538.22
8.1.90.0170.00338.20
8.1.80.0150.00438.22
8.1.70.0140.00538.24
8.1.60.0160.00638.30
8.1.50.0120.00838.25
8.1.40.0120.00738.29
8.1.30.0170.00438.28
8.1.20.0170.00538.23
8.1.10.0140.00738.15
8.1.00.0210.00338.20
8.0.300.0120.00319.03
8.0.290.0150.00137.97
8.0.280.0110.00538.54
8.0.270.0130.00238.14
8.0.260.0130.00438.05
8.0.250.0130.00438.05
8.0.240.0140.00438.05
8.0.230.0150.00238.05
8.0.220.0160.00238.05
8.0.210.0150.00538.05
8.0.200.0160.00238.05
8.0.190.0150.00338.05
8.0.180.0090.00938.05
8.0.170.0120.00638.05
8.0.160.0150.00338.05
8.0.150.0120.00638.05
8.0.140.0150.00338.05
8.0.130.0120.00538.05
8.0.120.0110.00638.05
8.0.110.0150.00238.05
8.0.100.0140.00438.05
8.0.90.0130.00338.05
8.0.80.0150.00338.05
8.0.70.0150.00538.05
8.0.60.0160.00338.05
8.0.50.0190.00038.05
8.0.30.0110.00738.05
8.0.20.0160.00438.05
8.0.10.0140.00538.05

preferences:
31.04 ms | 403 KiB | 5 Q