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 function(...$v) { #transpose discarding nulls return array_filter($v); #transpose discarding nulls }, #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.0100.01022.32
8.4.110.0070.01318.57
8.4.100.0050.00417.90
8.4.90.0080.00220.66
8.4.80.0110.00618.89
8.4.70.0180.00718.98
8.4.60.0100.01118.73
8.4.50.0100.00720.60
8.4.40.0070.01317.44
8.4.30.0100.00718.73
8.4.20.0030.01217.88
8.4.10.0030.00619.52
8.3.250.0130.00518.59
8.3.240.0110.00816.31
8.3.230.0080.01016.40
8.3.220.0100.00718.81
8.3.210.0060.00518.39
8.3.200.0070.00216.68
8.3.190.0040.00417.10
8.3.180.0080.01016.36
8.3.170.0130.00617.17
8.3.160.0090.00620.69
8.3.150.0120.00619.16
8.3.140.0110.00317.25
8.3.130.0040.00418.58
8.3.120.0040.00420.67
8.3.110.0040.00720.94
8.3.100.0040.00424.06
8.3.90.0110.00426.77
8.3.80.0090.00018.31
8.3.70.0120.00316.58
8.3.60.0150.00316.50
8.3.50.0100.01023.68
8.3.40.0100.00720.04
8.3.30.0110.00418.71
8.3.20.0000.00724.18
8.3.10.0030.00524.66
8.3.00.0000.00826.16
8.2.290.0120.00718.93
8.2.280.0140.00618.29
8.2.270.0040.01117.20
8.2.260.0090.00016.74
8.2.250.0080.00018.50
8.2.240.0030.00518.73
8.2.230.0080.00022.58
8.2.220.0030.00637.54
8.2.210.0060.00326.77
8.2.200.0040.00416.38
8.2.190.0100.00718.41
8.2.180.0170.00325.92
8.2.170.0150.00618.75
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0030.00524.66
8.2.130.0050.00226.16
8.2.120.0040.00426.35
8.2.110.0070.00320.35
8.2.100.0060.00617.59
8.2.90.0030.00617.77
8.2.80.0060.00317.97
8.2.70.0000.00917.80
8.2.60.0060.00318.09
8.2.50.0000.00818.10
8.2.40.0040.00419.31
8.2.30.0000.00819.14
8.2.20.0030.00518.07
8.2.10.0000.00719.23
8.2.00.0000.00719.41
8.1.330.0080.00421.75
8.1.320.0090.00516.35
8.1.310.0110.00718.47
8.1.300.0000.00919.47
8.1.290.0000.00930.84
8.1.280.0070.00725.92
8.1.270.0140.00723.81
8.1.260.0000.00728.09
8.1.250.0080.00028.09
8.1.240.0040.00422.48
8.1.230.0040.00822.67
8.1.220.0000.00817.79
8.1.210.0050.00318.78
8.1.200.0060.00317.23
8.1.190.0060.00317.13
8.1.180.0040.00418.10
8.1.170.0030.00518.49
8.1.160.0060.00319.02
8.1.150.0000.00718.89
8.1.140.0070.00018.95
8.1.130.0000.00720.12
8.1.120.0040.00417.47
8.1.110.0040.00417.38
8.1.100.0030.00517.42
8.1.90.0040.00417.49
8.1.80.0030.00717.34
8.1.70.0040.00417.40
8.1.60.0040.00417.59
8.1.50.0000.00817.52
8.1.40.0080.00017.48
8.1.30.0040.00417.68
8.1.20.0040.00417.59
8.1.10.0050.00317.47
8.1.00.0030.00517.31
8.0.300.0000.00719.86
8.0.290.0080.00016.62
8.0.280.0040.00418.34
8.0.270.0000.00716.75
8.0.260.0060.00018.37
8.0.250.0000.00816.88
8.0.240.0060.00316.76
8.0.230.0070.00016.94
8.0.220.0030.00316.76
8.0.210.0000.00716.75
8.0.200.0000.00716.98
8.0.190.0040.00416.81
8.0.180.0040.00416.97
8.0.170.0050.00316.80
8.0.160.0000.00816.77
8.0.150.0030.00316.83
8.0.140.0100.00016.82
8.0.130.0000.00513.30
8.0.120.0000.00716.84
8.0.110.0040.00416.68
8.0.100.0050.00217.00
8.0.90.0040.00416.95
8.0.80.0030.01216.86
8.0.70.0050.00216.77
8.0.60.0040.00416.94
8.0.50.0050.00316.68
8.0.30.0090.00916.95
8.0.20.0090.01317.09
8.0.10.0080.00017.07
8.0.00.0140.01116.67
7.4.330.0000.00515.55
7.4.320.0000.00716.45
7.4.300.0000.00616.45
7.4.290.0000.00716.50
7.4.280.0040.00816.50
7.4.270.0030.00316.51
7.4.260.0030.00313.29
7.4.250.0050.00316.51
7.4.240.0020.00616.45
7.4.230.0080.00016.59
7.4.220.0030.00416.54
7.4.210.0040.01116.52
7.4.200.0070.00016.24
7.4.130.0060.01316.36
7.4.120.0090.01316.54
7.4.110.0110.01216.53
7.4.100.0070.01016.43
7.4.90.0070.01516.55
7.4.80.0100.00719.39
7.4.70.0110.00516.37
7.4.60.0040.01516.45
7.4.50.0070.01016.09
7.4.40.0060.01516.34
7.4.30.0070.01016.31
7.4.20.0170.00016.34
7.4.10.0150.00916.73
7.4.00.0120.00916.38
7.3.330.0000.00816.23
7.3.320.0030.00313.16
7.3.310.0040.00416.24
7.3.300.0030.00416.23
7.3.290.0120.00516.29
7.3.280.0060.00916.23
7.3.260.0070.01116.32
7.3.240.0080.01016.29
7.3.230.0060.01516.25
7.3.210.0070.01016.13
7.3.200.0100.00716.49
7.3.190.0070.01016.39
7.3.180.0070.01016.16
7.3.170.0030.01316.54
7.3.160.0090.00916.27
7.3.150.0070.01016.23
7.3.140.0110.00716.25
7.3.130.0150.00916.13
7.3.120.0100.00916.25
7.3.110.0160.00816.41
7.3.100.0070.01316.43
7.3.90.0060.01516.22
7.3.80.0140.00516.11
7.3.70.0090.00916.23
7.3.60.0150.00616.23
7.3.50.0030.01816.25
7.3.40.0110.00716.37
7.3.30.0170.00616.29
7.3.20.0200.00616.23
7.3.10.0150.01316.27
7.3.00.0100.01616.43
7.2.330.0100.00716.58
7.2.320.0150.00616.49
7.2.310.0040.01216.59
7.2.300.0140.00316.36
7.2.290.0060.01316.38
7.2.280.0080.00816.37
7.2.270.0170.00016.55
7.2.260.0240.00016.39
7.2.250.0160.00816.23
7.2.240.0120.01016.51
7.2.230.0020.01316.42
7.2.220.0180.00616.53
7.2.210.0040.02016.54
7.2.200.0090.01516.35
7.2.190.0160.00916.38
7.2.180.0090.01116.47
7.2.170.0100.01316.26
7.2.160.0160.00616.59
7.2.150.0140.01016.60
7.2.140.0150.00816.32
7.2.130.0000.02116.57
7.2.120.0140.01016.38
7.2.110.0070.01316.61
7.2.100.0080.01116.40
7.2.90.0120.00916.46
7.2.80.0100.01216.40
7.2.70.0120.01216.59
7.2.60.0120.01216.30
7.2.50.0030.02016.54
7.2.40.0180.01116.57
7.2.30.0160.00816.50
7.2.20.0180.00616.36
7.2.10.0120.01416.54
7.2.00.0090.01516.63

preferences:
51.23 ms | 406 KiB | 6 Q