3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rows = [ 100 => [ ['product_id' => 101, 'name' => ''], ['product_id' => 102, 'name' => ''], ['product_id' => 103, 'name' => ''], ], 200 => [ ['product_id' => 201, 'name' => ''], ['product_id' => 202, 'name' => ''], ], 300 => [ ['product_id' => 301, 'name' => ''], ['product_id' => 302, 'name' => ''], ['product_id' => 303, 'name' => ''], ['product_id' => 304, 'name' => ''], ] ]; var_export( array_merge( #flatten the unpacked elements ...array_map( #unpack fn(...$v) => array_filter($v), #transpose discarding nulls ...$rows #transpose discarding nulls ) #unpack ) #flatten the unpacked elements );

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.120.0090.01024.00
8.4.110.0090.01118.84
8.4.100.0050.00518.73
8.4.90.0060.00520.47
8.4.80.0120.00918.72
8.4.70.0100.01018.01
8.4.60.0050.00618.72
8.4.50.0150.00517.93
8.4.40.0140.00619.42
8.4.30.0160.00318.47
8.4.20.0100.01019.51
8.4.10.0040.00419.38
8.3.250.0110.00818.83
8.3.240.0130.00717.33
8.3.230.0140.00516.60
8.3.220.0130.00619.03
8.3.210.0110.00816.57
8.3.200.0040.00516.69
8.3.190.0130.00517.01
8.3.180.0090.00616.49
8.3.170.0100.00718.97
8.3.160.0090.00618.30
8.3.150.0080.00020.86
8.3.140.0190.00016.55
8.3.130.0000.00818.37
8.3.120.0110.00718.68
8.3.110.0040.00420.94
8.3.100.0060.00324.06
8.3.90.0060.00326.77
8.3.80.0050.00516.50
8.3.70.0090.01216.63
8.3.60.0140.00018.43
8.3.50.0150.00223.57
8.3.40.0110.00420.12
8.3.30.0090.01218.77
8.3.20.0070.00024.18
8.3.10.0070.00024.66
8.3.00.0070.00026.16
8.2.290.0070.01120.50
8.2.280.0110.00620.10
8.2.270.0180.00017.07
8.2.260.0140.00320.00
8.2.250.0050.00316.70
8.2.240.0060.00318.71
8.2.230.0040.00422.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0030.00616.88
8.2.190.0040.01116.63
8.2.180.0060.00925.92
8.2.170.0100.01018.94
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0050.00319.95
8.2.110.0050.00519.27
8.2.100.0090.00319.45
8.2.90.0000.00719.07
8.2.80.0030.00617.97
8.2.70.0110.00017.63
8.2.60.0050.00318.04
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0000.00717.97
8.2.20.0000.00718.06
8.2.10.0040.00419.27
8.2.00.0030.00519.21
8.1.330.0020.00622.08
8.1.320.0040.00318.00
8.1.310.0050.00316.79
8.1.300.0110.00718.56
8.1.290.0050.00518.88
8.1.280.0110.00425.92
8.1.270.0090.00023.90
8.1.260.0060.00326.35
8.1.250.0050.00228.09
8.1.240.0070.00321.37
8.1.230.0110.00022.08
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0030.00617.35
8.1.180.0040.00418.10
8.1.170.0060.00318.65
8.1.160.0070.00018.89
8.1.150.0000.00718.84
8.1.140.0030.00518.83
8.1.130.0030.00320.14
8.1.120.0070.00017.49
8.1.110.0080.00017.34
8.1.100.0050.00217.48
8.1.90.0040.00417.45
8.1.80.0030.00717.49
8.1.70.0000.00817.33
8.1.60.0030.00617.55
8.1.50.0040.00417.53
8.1.40.0070.00017.50
8.1.30.0050.00317.64
8.1.20.0040.00417.61
8.1.10.0050.00217.57
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0030.00318.36
8.0.270.0030.00317.94
8.0.260.0000.00618.37
8.0.250.0070.00016.86
8.0.240.0050.00516.77
8.0.230.0020.00516.83
8.0.220.0000.00716.88
8.0.210.0030.00316.69
8.0.200.0020.00516.81
8.0.190.0040.00416.98
8.0.180.0070.00016.93
8.0.170.0040.00416.92
8.0.160.0020.00516.89
8.0.150.0030.00316.71
8.0.140.0070.00316.80
8.0.130.0030.00313.33
8.0.120.0000.00716.79
8.0.110.0080.00016.71
8.0.100.0070.00016.95
8.0.90.0000.00816.74
8.0.80.0120.00716.84
8.0.70.0080.00016.88
8.0.60.0070.00016.79
8.0.50.0000.00816.95
8.0.30.0040.01217.11
8.0.20.0070.01417.08
8.0.10.0000.00717.01
8.0.00.0090.00916.70
7.4.330.0000.00515.55
7.4.320.0040.00416.52
7.4.300.0060.00016.39
7.4.290.0000.00716.48
7.4.280.0080.00316.51
7.4.270.0000.00716.46
7.4.260.0030.00313.27
7.4.250.0070.00016.46
7.4.240.0000.00716.54
7.4.230.0030.00616.67
7.4.220.0040.00316.65
7.4.210.0090.00816.57
7.4.200.0070.00016.57
7.4.130.0070.01316.57
7.4.120.0090.01416.59
7.4.110.0030.01516.54
7.4.100.0110.00716.39
7.4.90.0140.00516.64
7.4.80.0070.01019.39
7.4.70.0030.01316.44
7.4.60.0110.01116.38
7.4.50.0100.00716.18
7.4.40.0150.00516.48
7.4.30.0100.00716.38
7.4.20.0070.01016.21
7.4.10.0090.01416.42
7.4.00.0060.01216.23
7.3.330.0060.00016.16
7.3.320.0000.00513.22
7.3.310.0030.00316.31
7.3.300.0030.00316.16
7.3.290.0070.00716.18
7.3.280.0070.01016.17
7.3.260.0130.00316.21
7.3.240.0070.00916.29
7.3.230.0070.01016.23
7.3.210.0130.00316.28
7.3.200.0150.00716.35
7.3.190.0060.01016.23
7.3.180.0070.01416.13
7.3.170.0130.00716.16
7.3.160.0100.00716.43
7.3.150.0070.01116.24
7.3.140.0170.00516.30
7.3.130.0110.01116.06
7.3.120.0090.00616.29
7.3.110.0060.00916.23
7.3.100.0080.00816.16
7.3.90.0030.01316.29
7.3.80.0130.00316.21
7.3.70.0100.00716.27
7.3.60.0080.01216.20
7.3.50.0120.00316.14
7.3.40.0040.01116.13
7.3.30.0060.01216.16
7.3.20.0100.00716.17
7.3.10.0060.00916.17
7.3.00.0090.00616.19
7.2.330.0090.00916.39
7.2.320.0040.01416.57
7.2.310.0140.00616.32
7.2.300.0110.00516.49
7.2.290.0050.01616.16
7.2.280.0000.01716.25
7.2.270.0030.01316.17
7.2.260.0100.01016.45
7.2.250.0000.01616.27
7.2.240.0140.00616.42
7.2.230.0110.00716.05
7.2.220.0000.01616.13
7.2.210.0090.00816.48
7.2.200.0070.01016.34
7.2.190.0030.01316.38
7.2.180.0100.00616.42
7.2.170.0130.00416.27
7.2.160.0100.00616.33
7.2.150.0100.00716.25
7.2.140.0120.00416.37
7.2.130.0100.00716.54
7.2.120.0110.00616.25
7.2.110.0060.01216.21
7.2.100.0070.01016.46
7.2.90.0100.00716.30
7.2.80.0100.00716.56
7.2.70.0060.01016.30
7.2.60.0100.00716.44
7.2.50.0120.00616.09
7.2.40.0120.00616.50
7.2.30.0080.00916.51
7.2.20.0110.00616.37
7.2.10.0070.01016.23
7.2.00.0070.01016.33

preferences:
49.26 ms | 403 KiB | 5 Q