3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [ ['A', 'B', 'C'], ['F', 'G'] ]; $arr2 = [ ['D', 'E'], ['H', 'I', 'J', 'L'] ]; foreach ($arr1 as $i => &$row) { array_push($row, ...$arr2[$i]); } var_export($arr1);

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.3.130.0060.00318.54
8.3.120.0070.01018.70
8.3.110.0070.00320.94
8.3.100.0060.00924.06
8.3.90.0110.00726.77
8.3.80.0060.00316.50
8.3.70.0070.01116.58
8.3.60.0040.01516.34
8.3.50.0140.00720.07
8.3.40.0080.00620.12
8.3.30.0070.00718.54
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.250.0000.00816.46
8.2.240.0000.00818.88
8.2.230.0040.00422.58
8.2.220.0120.00337.54
8.2.210.0000.01426.77
8.2.200.0030.00618.54
8.2.190.0000.01916.58
8.2.180.0120.00325.92
8.2.170.0070.00718.99
8.2.160.0100.00722.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0030.00721.03
8.2.100.0040.00819.83
8.2.90.0000.00817.88
8.2.80.0050.00317.97
8.2.70.0080.00018.03
8.2.60.0030.00517.63
8.2.50.0080.00018.05
8.2.40.0060.00318.19
8.2.30.0000.00818.00
8.2.20.0040.00419.28
8.2.10.0040.00418.16
8.2.00.0000.00719.25
8.1.300.0030.00619.72
8.1.290.0060.00330.84
8.1.280.0120.00325.92
8.1.270.0050.00224.66
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0070.00417.48
8.1.230.0040.00717.64
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00717.25
8.1.190.0030.00617.10
8.1.180.0000.00918.89
8.1.170.0000.00817.62
8.1.160.0030.00519.00
8.1.150.0040.00418.68
8.1.140.0040.00417.45
8.1.130.0000.00818.79
8.1.120.0000.00817.45
8.1.110.0130.00317.36
8.1.100.0110.00417.40
8.1.90.0080.00817.39
8.1.80.0050.01017.29
8.1.70.0110.00417.20
8.1.60.0050.01317.36
8.1.50.0120.00617.40
8.1.40.0120.00617.50
8.1.30.0100.00717.45
8.1.20.0170.00017.41
8.1.10.0120.00617.45
8.1.00.0070.01017.50
8.0.300.0070.00018.77
8.0.290.0060.00316.75
8.0.280.0030.00318.47
8.0.270.0040.00416.72
8.0.260.0030.00318.34
8.0.250.0050.00216.98
8.0.240.0050.00216.81
8.0.230.0000.01516.70
8.0.220.0150.00016.79
8.0.210.0030.01016.81
8.0.200.0140.00016.84
8.0.190.0050.01016.76
8.0.180.0110.00316.76
8.0.170.0150.00016.73
8.0.160.0130.00316.71
8.0.150.0120.00216.80
8.0.140.0070.00716.79
8.0.130.0120.00316.75
8.0.120.0070.00716.73
8.0.110.0090.00516.70
8.0.100.0080.00616.82
8.0.90.0150.00016.70
8.0.80.0040.01116.75
8.0.70.0140.00016.80
8.0.60.0110.00316.74
8.0.50.0040.01216.79
8.0.30.0100.00316.81
8.0.20.0120.00316.73
8.0.10.0060.00916.87
7.4.330.0000.00415.55
7.4.320.0160.00016.43
7.4.300.0080.00816.49
7.4.290.0050.01016.43
7.4.280.0170.00016.49
7.4.270.0170.00016.50
7.4.260.0060.01016.43
7.4.250.0140.00316.49
7.4.240.0110.00416.39
7.4.230.0100.00716.39
7.4.220.0090.00516.50
7.4.210.0090.00516.44
7.4.200.0080.00516.44
7.4.190.0150.00016.46
7.4.180.0130.00016.61
7.4.160.0140.00016.49
7.4.150.0100.00316.32
7.4.140.0140.00016.39
7.4.130.0110.00216.30
7.4.120.0090.00416.25
7.4.110.0100.00416.43
7.4.100.0090.00516.48
7.4.90.0090.00016.35
7.4.80.0050.00516.30
7.4.70.0110.00316.32
7.4.60.0070.00716.46
7.4.50.0100.00316.22
7.4.40.0130.00016.09
7.4.30.0150.00016.17
7.4.20.0070.00716.36
7.4.10.0140.00016.24
7.4.00.0060.00616.31

preferences:
29.86 ms | 403 KiB | 5 Q