3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array0 = [1,'1'=>2,3,4]; $array1 = [5, 6]; var_dump($array0 + $array1, array_merge($array0, $array1));

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.60.0170.01016.25
8.3.50.0120.00721.87
8.3.40.0110.00318.45
8.3.30.0090.00618.82
8.3.20.0070.00020.10
8.3.10.0080.00023.68
8.3.00.0000.00822.34
8.2.180.0000.01618.28
8.2.170.0070.01122.96
8.2.160.0100.00320.46
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0100.00326.16
8.2.120.0060.00322.33
8.2.110.0030.00720.53
8.2.100.0110.00017.72
8.2.90.0050.00318.98
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0030.00618.22
8.2.30.0050.00217.99
8.2.20.0040.00417.50
8.2.10.0050.00319.45
8.2.00.0000.00717.73
8.1.280.0130.00725.92
8.1.270.0040.00423.92
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00622.06
8.1.230.0000.01117.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.01017.10
8.1.190.0040.00417.53
8.1.180.0000.00818.10
8.1.170.0040.00418.48
8.1.160.0040.00421.88
8.1.150.0000.00718.59
8.1.140.0020.00517.30
8.1.130.0000.00717.86
8.1.120.0000.00717.44
8.1.110.0000.00817.43
8.1.100.0050.00317.41
8.1.90.0050.00217.28
8.1.80.0030.00317.27
8.1.70.0080.00017.35
8.1.60.0030.00617.51
8.1.50.0080.00017.46
8.1.40.0050.00317.43
8.1.30.0040.00417.62
8.1.20.0040.00417.46
8.1.10.0060.00317.31
8.1.00.0090.00017.34
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.45
8.0.270.0000.00717.12
8.0.260.0000.00616.73
8.0.250.0000.00816.99
8.0.240.0040.00716.95
8.0.230.0000.00716.96
8.0.220.0030.00316.93
8.0.210.0000.00716.84
8.0.200.0000.01016.85
8.0.190.0000.00716.96
8.0.180.0040.00416.80
8.0.170.0060.00316.80
8.0.160.0070.00016.87
8.0.150.0050.00316.77
8.0.140.0070.00016.74
8.0.130.0000.00613.40
8.0.120.0000.00716.73
8.0.110.0020.00516.72
8.0.100.0050.00316.77
8.0.90.0000.00716.77
8.0.80.0120.00616.85
8.0.70.0000.00716.76
8.0.60.0030.00516.95
8.0.50.0040.00416.68
8.0.30.0100.00916.85
8.0.20.0120.01017.40
8.0.10.0070.00016.87
8.0.00.0110.00716.84
7.4.330.0050.00015.13
7.4.320.0030.00316.54
7.4.300.0030.00616.43
7.4.290.0030.00316.43
7.4.280.0000.00716.50
7.4.270.0030.00316.44
7.4.260.0000.00716.37
7.4.250.0000.00716.29
7.4.240.0040.00416.51
7.4.230.0030.00316.52
7.4.220.0100.00716.61
7.4.210.0110.00716.52
7.4.200.0070.00016.27
7.4.190.0040.00416.70
7.4.160.0140.00816.47
7.4.150.0070.01117.40
7.4.140.0120.00617.86
7.4.130.0120.00916.43
7.4.120.0050.01316.46
7.4.110.0100.00616.42
7.4.100.0190.00816.52
7.4.90.0090.00916.41
7.4.80.0060.01219.39
7.4.70.0130.00316.42
7.4.60.0130.00416.36
7.4.50.0080.00016.59
7.4.40.0030.01022.77
7.4.30.0030.01316.51
7.4.00.0060.00314.63
7.3.330.0000.00613.19
7.3.320.0050.00013.02
7.3.310.0030.00316.26
7.3.300.0020.00516.07
7.3.290.0110.00416.17
7.3.280.0110.00616.20
7.3.270.0140.00917.40
7.3.260.0150.00916.30
7.3.250.0050.01416.39
7.3.240.0130.00416.61
7.3.230.0070.01016.39
7.3.210.0060.01216.11
7.3.200.0090.01119.39
7.3.190.0060.01116.35
7.3.180.0080.00816.19
7.3.170.0170.00016.48
7.3.160.0030.01416.38
7.3.120.0070.01014.52
7.3.10.0040.01116.61
7.3.00.0030.00916.52
7.2.330.0090.00916.20
7.2.320.0100.01116.64
7.2.310.0070.01016.54
7.2.300.0120.01216.27
7.2.290.0030.01316.38
7.2.130.0120.00316.92
7.2.120.0060.00616.76
7.2.110.0060.00616.77
7.2.100.0040.01416.75
7.2.90.0070.01016.25
7.2.80.0060.01016.18
7.2.70.0110.00416.86
7.2.60.0070.00716.54
7.2.50.0110.00016.67
7.2.40.0140.00416.88
7.2.30.0090.00616.86
7.2.20.0070.00716.51
7.2.10.0040.01216.84
7.2.00.0050.00717.95
7.1.250.0030.00715.71
7.1.100.0040.01417.80
7.1.70.0060.01216.93
7.1.60.0090.01319.29
7.1.50.0200.01434.50
7.1.00.0130.06322.30
7.0.200.0060.00616.61
7.0.140.0070.07022.07
7.0.60.0130.07021.71
7.0.50.0000.08717.82
7.0.40.0000.06320.18
7.0.30.0170.08320.13
7.0.20.0300.08020.16
7.0.10.0030.09020.18
7.0.00.0070.07720.09
5.6.280.0070.07021.02
5.6.210.0130.03320.61
5.6.200.0070.06718.21
5.6.190.0000.08720.64
5.6.180.0270.03320.57
5.6.170.0230.08720.45
5.6.160.0100.08720.48
5.6.150.0030.05018.22
5.6.140.0130.07318.21
5.6.130.0070.03718.14
5.6.120.0130.07321.14
5.6.110.0270.06720.88
5.6.100.0030.09021.10
5.6.90.0070.08321.09
5.6.80.0030.08720.27
5.5.350.4130.03720.31
5.5.340.0100.03317.92
5.5.330.0170.08020.40
5.5.320.0630.06720.31
5.5.310.0370.06720.34
5.5.300.0100.08017.98
5.5.290.0100.08017.92
5.5.280.0070.04020.77
5.5.270.0070.07020.72
5.5.260.0000.08720.83
5.5.250.0170.04020.57
5.5.240.0070.07320.18
5.4.450.0100.05019.23
5.4.440.4230.04319.36
5.4.430.4030.03319.48
5.4.420.3670.03319.37
5.4.410.3730.02319.08
5.4.400.0100.07019.11
5.4.390.3930.04019.17
5.4.380.3600.03319.08
5.4.370.3670.04319.17
5.4.360.3970.04019.26
5.4.350.3870.04018.93
5.4.340.4730.05019.13
5.4.320.4670.04019.04
5.4.310.3630.03318.89
5.4.300.3530.03719.08
5.4.290.3700.03719.08
5.4.280.2970.04019.25
5.4.270.2870.03318.86
5.4.260.3230.04019.13
5.4.250.3330.03719.03
5.4.240.3370.03719.25
5.4.230.3270.04319.01
5.4.220.3830.04018.99
5.4.210.4130.03319.08
5.4.200.3930.03318.86
5.4.190.4430.04019.00
5.4.180.4700.03019.25
5.4.170.4100.04318.91
5.4.160.4100.03318.86
5.4.150.4000.03319.14
5.4.140.4430.04016.28
5.4.130.4600.03316.44
5.4.120.3930.03316.43
5.4.110.4200.03716.49
5.4.100.4200.03716.46
5.4.90.3800.03316.50
5.4.80.3570.03016.14
5.4.70.3970.03016.33
5.4.60.4070.03316.36
5.4.50.3970.03016.23
5.4.40.3730.04016.37
5.4.30.3870.03016.13
5.4.20.4600.03716.10
5.4.10.4270.03316.46
5.4.00.3970.04015.58
5.3.290.3870.03714.61
5.3.280.3930.04014.52
5.3.270.3900.04014.62
5.3.260.3970.03014.45
5.3.250.3730.03714.53
5.3.240.4500.04014.53
5.3.230.4630.03314.53
5.3.220.4400.04014.36
5.3.210.4570.03314.39
5.3.200.4570.03714.53
5.3.190.3800.03714.59
5.3.180.3800.03314.52
5.3.170.4070.04014.65
5.3.160.4030.04014.49
5.3.150.3470.03314.49
5.3.140.4030.03714.51
5.3.130.4000.03714.37
5.3.120.4270.03714.52
5.3.110.4300.03314.48
5.3.100.4230.03713.99
5.3.90.4630.03313.90
5.3.80.4170.04013.80
5.3.70.4170.04013.96
5.3.60.4630.03313.89
5.3.50.4630.02713.89
5.3.40.3800.03313.89
5.3.30.4230.03313.73
5.3.20.4500.03013.63
5.3.10.4430.03713.61
5.3.00.4170.03713.46
5.2.170.3600.03311.13
5.2.160.3400.03011.03
5.2.150.2870.03310.96
5.2.140.3900.02311.22
5.2.130.3500.02711.09
5.2.120.3330.03011.11
5.2.110.3670.02711.09
5.2.100.3500.02011.08
5.2.90.3670.03311.26
5.2.80.3270.02710.97
5.2.70.4030.03311.08
5.2.60.3770.03010.98
5.2.50.3800.03310.95
5.2.40.3200.02310.89
5.2.30.3070.03010.91
5.2.20.3070.03310.86
5.2.10.0030.06010.90
5.2.00.0030.05010.79
5.1.60.0000.05010.04
5.1.50.0000.03310.00
5.1.40.2870.0279.95
5.1.30.3100.02710.32
5.1.20.3130.02310.31
5.1.10.3130.0279.99
5.1.00.2800.0279.97
5.0.50.1700.0208.54
5.0.40.1600.0278.55
5.0.30.1800.0378.25
5.0.20.1730.0178.18
5.0.10.1500.0178.12
5.0.00.1570.0338.05
4.4.90.1700.0176.33
4.4.80.1830.0136.33
4.4.70.1470.0176.33
4.4.60.1130.0206.33
4.4.50.0000.0236.33
4.4.40.0000.0536.33
4.4.30.1130.0176.33
4.4.20.1630.0176.33
4.4.10.1400.0176.33
4.4.00.1900.0306.33
4.3.110.1800.0136.33
4.3.100.1670.0176.33
4.3.90.1470.0136.33
4.3.80.1730.0276.33
4.3.70.1430.0136.33
4.3.60.1430.0176.33
4.3.50.1370.0206.33
4.3.40.1430.0276.33
4.3.30.0870.0206.33
4.3.20.0970.0176.33
4.3.10.1130.0136.33
4.3.00.0970.0176.33

preferences:
42.07 ms | 401 KiB | 5 Q