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_filter( #remove nulls array_merge( #flatten the unpacked elements ...array_map( #unpack null, #transpose ...$rows #transpose ) #unpack ) #flatten the unpacked elements ) #remove nulls );

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.0120.01117.73
8.4.120.0110.00920.59
8.4.110.0100.00320.56
8.4.100.0090.00818.63
8.4.90.0080.01124.00
8.4.80.0120.00818.69
8.4.70.0130.00617.88
8.4.60.0110.01118.85
8.4.50.0090.01017.55
8.4.40.0030.01317.77
8.4.30.0150.00618.54
8.4.20.0060.01319.68
8.4.10.0050.00319.23
8.3.250.0080.01018.94
8.3.240.0140.00616.53
8.3.230.0110.00816.45
8.3.220.0130.00618.76
8.3.210.0060.00716.48
8.3.200.0060.00316.37
8.3.190.0050.00317.21
8.3.180.0110.00816.62
8.3.170.0070.01017.18
8.3.160.0040.01418.30
8.3.150.0120.00616.99
8.3.140.0080.00016.94
8.3.130.0060.00318.42
8.3.120.0130.00319.01
8.3.110.0040.00416.62
8.3.100.0080.00016.62
8.3.90.0120.00626.77
8.3.80.0000.00916.50
8.3.70.0110.00416.58
8.3.60.0070.00718.43
8.3.50.0110.00623.58
8.3.40.0030.01420.47
8.3.30.0070.01018.62
8.3.20.0070.00024.18
8.3.10.0070.00024.66
8.3.00.0080.00026.16
8.2.290.0110.00820.25
8.2.280.0140.00619.99
8.2.270.0060.01216.64
8.2.260.0070.01018.78
8.2.250.0060.00316.71
8.2.240.0090.00618.78
8.2.230.0030.00620.94
8.2.220.0030.00624.06
8.2.210.0060.01226.77
8.2.200.0030.00616.63
8.2.190.0100.00316.63
8.2.180.0090.00625.92
8.2.170.0100.01018.83
8.2.160.0090.00622.96
8.2.150.0000.01025.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00226.35
8.2.110.0050.00521.03
8.2.100.0090.00317.63
8.2.90.0040.00417.65
8.2.80.0000.00818.85
8.2.70.0060.00317.63
8.2.60.0080.00017.93
8.2.50.0050.00318.05
8.2.40.0030.00619.76
8.2.30.0060.00317.95
8.2.20.0000.00717.88
8.2.10.0040.00419.31
8.2.00.0040.00419.27
8.1.330.0020.00721.99
8.1.320.0140.00617.90
8.1.310.0030.00716.84
8.1.300.0040.00416.19
8.1.290.0040.00430.84
8.1.280.0090.00925.92
8.1.270.0080.00020.19
8.1.260.0040.00428.09
8.1.250.0070.00328.09
8.1.240.0100.00019.00
8.1.230.0060.00620.87
8.1.220.0000.00817.74
8.1.210.0040.00418.82
8.1.200.0060.00317.23
8.1.190.0050.00317.23
8.1.180.0030.00618.10
8.1.170.0030.00518.70
8.1.160.0070.00018.79
8.1.150.0040.00418.84
8.1.140.0070.00018.82
8.1.130.0030.00319.99
8.1.120.0040.00417.34
8.1.110.0000.00717.42
8.1.100.0040.00417.34
8.1.90.0050.00317.39
8.1.80.0060.00317.40
8.1.70.0000.00817.41
8.1.60.0030.00617.43
8.1.50.0000.00817.40
8.1.40.0040.00417.43
8.1.30.0090.00017.52
8.1.20.0040.00417.61
8.1.10.0040.00417.44
8.1.00.0000.00717.32
8.0.300.0000.00719.99
8.0.290.0080.00016.58
8.0.280.0000.00718.30
8.0.270.0000.00717.97
8.0.260.0060.00318.40
8.0.250.0040.00416.90
8.0.240.0030.00316.79
8.0.230.0030.00316.88
8.0.220.0030.00316.70
8.0.210.0030.00316.79
8.0.200.0000.00716.80
8.0.190.0000.00716.88
8.0.180.0000.00816.76
8.0.170.0050.00316.90
8.0.160.0000.00916.85
8.0.150.0000.00716.80
8.0.140.0040.00416.82
8.0.130.0000.00613.29
8.0.120.0070.00016.80
8.0.110.0040.00416.66
8.0.100.0040.00416.85
8.0.90.0030.00616.66
8.0.80.0100.00816.78
8.0.70.0000.00816.78
8.0.60.0040.00416.72
8.0.50.0050.00216.71
8.0.30.0060.01016.77
8.0.20.0090.01516.79
8.0.10.0070.00016.84
8.0.00.0160.00316.75
7.4.330.0030.00315.55
7.4.320.0050.00316.48
7.4.300.0030.00316.36
7.4.290.0080.00016.49
7.4.280.0080.00316.34
7.4.270.0070.00016.54
7.4.260.0000.00513.22
7.4.250.0040.00416.39
7.4.240.0020.00616.48
7.4.230.0030.00516.26
7.4.220.0000.00716.31
7.4.210.0070.00816.52
7.4.200.0040.00416.54
7.4.130.0100.00916.38
7.4.120.0100.01316.27
7.4.110.0040.01516.31
7.4.100.0130.00616.29
7.4.90.0110.00616.54
7.4.80.0070.01019.39
7.4.70.0100.00616.49
7.4.60.0060.00916.47
7.4.50.0110.00515.83
7.4.40.0030.01416.25
7.4.30.0110.00616.17
7.4.20.0090.00916.11
7.4.10.0000.01916.39
7.4.00.0140.00516.49
7.3.330.0030.00315.97
7.3.320.0000.00612.91
7.3.310.0040.00416.11
7.3.300.0070.00015.96
7.3.290.0080.00816.13
7.3.280.0060.01016.04
7.3.260.0140.00316.35
7.3.240.0060.01116.34
7.3.230.0130.00316.48
7.3.210.0030.01316.32
7.3.200.0100.00616.38
7.3.190.0090.00616.18
7.3.180.0040.01216.32
7.3.170.0100.00616.20
7.3.160.0100.00716.28
7.3.150.0130.00416.19
7.3.140.0090.00616.15
7.3.130.0070.01016.33
7.3.120.0100.00616.08
7.3.110.0090.00616.29
7.3.100.0160.00316.38
7.3.90.0040.01116.14
7.3.80.0120.00316.30
7.3.70.0080.00816.29
7.3.60.0030.01316.21
7.3.50.0060.00916.29
7.3.40.0160.00016.19
7.3.30.0070.01016.22
7.3.20.0130.00316.25
7.3.10.0110.00716.09
7.3.00.0100.00716.18
7.2.330.0140.00316.60
7.2.320.0090.01216.52
7.2.310.0060.01016.51
7.2.300.0070.01016.50
7.2.290.0100.00716.54
7.2.280.0100.00716.55
7.2.270.0030.01416.19
7.2.260.0070.01116.46
7.2.250.0110.00916.48
7.2.240.0100.00616.20
7.2.230.0090.00916.28
7.2.220.0030.01316.41
7.2.210.0040.01216.23
7.2.200.0040.01216.46
7.2.190.0140.00316.56
7.2.180.0110.00516.53
7.2.170.0040.01216.43
7.2.160.0070.01016.39
7.2.150.0080.01516.44
7.2.140.0040.01216.37
7.2.130.0060.00916.56
7.2.120.0110.00416.28
7.2.110.0040.01116.41
7.2.100.0120.00416.43
7.2.90.0150.00316.38
7.2.80.0090.01216.34
7.2.70.0070.01116.34
7.2.60.0160.00916.44
7.2.50.0140.00416.36
7.2.40.0090.00916.44
7.2.30.0000.01616.56
7.2.20.0030.01416.38
7.2.10.0110.00716.54
7.2.00.0060.01216.45

preferences:
36.31 ms | 403 KiB | 5 Q