3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['t1' => 'a', 't2' => 'b', 't3' => 'c']; $b = ['t1' => 'd', 't2' => 'e', 't3' => 'f']; print_r(array_merge($a, $b)); print_r(array_merge(array_values($a), array_values($b)));

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.20.0100.01017.36
8.4.10.0100.00017.68
8.3.140.0040.00418.73
8.3.130.0110.00718.12
8.3.120.0090.00018.90
8.3.110.0030.00720.94
8.3.100.0270.00630.80
8.3.90.0210.00932.15
8.3.80.0250.00527.08
8.3.70.0210.00827.06
8.3.60.0220.01027.02
8.3.50.0220.00926.56
8.3.40.0240.00628.11
8.3.30.0150.01028.13
8.3.20.0140.00628.12
8.3.10.0130.00829.50
8.3.00.0160.00529.15
8.2.260.0050.00316.58
8.2.250.0170.00318.52
8.2.240.0060.00316.88
8.2.230.0030.01222.58
8.2.220.0190.01237.54
8.2.210.0140.01032.15
8.2.200.0110.00427.85
8.2.190.0180.00927.08
8.2.180.0110.01027.92
8.2.170.0110.00730.25
8.2.160.0140.00529.03
8.2.150.0150.00031.60
8.2.140.0120.00631.10
8.2.130.0200.00531.85
8.2.120.0200.00529.33
8.2.110.0150.00925.75
8.2.100.0190.00724.70
8.2.90.0140.00924.61
8.2.80.0170.00825.06
8.2.70.0170.00724.60
8.2.60.0150.00822.72
8.2.50.0160.00722.87
8.2.40.0150.00623.89
8.2.30.0160.00423.40
8.2.20.0130.00822.85
8.2.10.0220.00322.92
8.2.00.0160.00622.99
8.1.310.0090.00616.46
8.1.300.0030.00617.72
8.1.290.0160.01034.19
8.1.280.0150.01331.73
8.1.270.0140.00930.67
8.1.260.0100.00631.94
8.1.250.0130.00732.81
8.1.240.0180.00526.68
8.1.230.0190.00524.51
8.1.220.0080.01424.75
8.1.210.0110.01025.36
8.1.200.0130.00624.38
8.1.190.0170.00422.36
8.1.180.0140.00822.67
8.1.170.0140.00422.88
8.1.160.0150.00323.03
8.1.150.0110.00822.96
8.1.140.0140.00423.07
8.1.130.0130.00722.71
8.1.120.0160.00323.04
8.1.110.0130.00723.11
8.1.100.0130.00723.08
8.1.90.0110.00922.59
8.1.80.0120.00823.01
8.1.70.0110.00822.71
8.1.60.0070.00518.96
8.1.50.0120.00822.68
8.1.40.0130.00522.69
8.1.30.0140.00322.83
8.1.20.0090.00622.71
8.1.10.0110.00522.63
8.1.00.0110.00522.64
8.0.300.0080.00524.73
8.0.290.0070.00723.93
8.0.280.0090.00722.55
8.0.270.0120.00322.20
8.0.260.0070.00722.10
8.0.250.0060.00922.15
8.0.240.0090.00522.15
8.0.230.0100.00422.30
8.0.220.0120.00222.18
8.0.210.0090.00822.16
8.0.200.0090.00522.25
8.0.190.0090.00522.16
8.0.180.0090.00622.17
8.0.170.0090.00522.25
8.0.160.0090.00622.20
8.0.150.0120.00222.16
8.0.140.0100.00420.35
8.0.130.0100.00421.20
8.0.120.0090.00522.15
8.0.110.0100.00422.18
8.0.100.0080.00622.14
8.0.90.0070.00722.16
8.0.80.0130.00422.20
8.0.70.0100.00522.17
8.0.60.0120.00322.18
8.0.50.0100.00322.16
8.0.30.0080.00821.09
8.0.20.0100.00820.70
8.0.10.0100.00422.20
8.0.00.0130.00620.67
7.4.330.0060.00620.83
7.4.320.0120.00321.95
7.4.300.0080.00521.97
7.4.290.0100.00520.17
7.4.280.0080.00621.97
7.4.270.0090.00422.06
7.4.260.0100.00421.99
7.4.250.0100.00421.97
7.4.240.0110.00222.05
7.4.230.0100.00321.96
7.4.220.0090.01022.00
7.4.210.0080.00820.89
7.4.200.0110.00222.04
7.4.190.0090.00723.88
7.4.180.0140.00223.83
7.4.160.0130.00421.94
7.4.150.0100.00622.23
7.4.140.0140.00721.45
7.4.130.0090.00720.80
7.4.120.0070.00920.86
7.4.110.0140.00621.93
7.4.100.0200.00221.99
7.4.90.0140.00521.92
7.4.80.0110.00822.66
7.4.70.0160.00521.85
7.4.60.0150.00321.96
7.4.50.0130.00521.82
7.4.40.0170.00421.94
7.4.30.0160.00721.87
7.4.20.0190.00523.82
7.4.10.0200.00623.71
7.4.00.0110.00621.56
7.3.330.0120.00219.42
7.3.320.0130.00721.02
7.3.310.0130.00621.84
7.3.300.0130.00421.83
7.3.290.0150.00521.83
7.3.280.0150.00619.92
7.3.270.0160.00722.13
7.3.260.0190.00421.77
7.3.250.0130.00620.00
7.3.240.0160.00620.69
7.3.230.0140.00821.86
7.3.220.0230.00223.65
7.3.210.0150.00721.83
7.3.200.0170.00621.77
7.3.190.0160.00621.87
7.3.180.0230.00521.90
7.3.170.0190.00821.79
7.3.160.0250.00422.05
7.3.150.0230.00623.64
7.3.140.0190.00723.61
7.3.130.0240.00523.69
7.3.120.0150.00523.65
7.3.110.0200.00523.61
7.3.100.0170.00023.70
7.3.90.0200.00423.72
7.3.80.0230.00423.66
7.3.70.0230.00723.73
7.3.60.0180.00721.36
7.3.50.0170.00521.49
7.3.40.0170.00521.48
7.3.30.0180.00521.54
7.3.20.0170.00920.74
7.3.10.0400.00819.60
7.3.00.0540.00519.59
7.2.340.0130.01224.31
7.2.330.0180.00621.85
7.2.320.0190.00621.81
7.2.310.0200.00321.91
7.2.300.0190.00621.94
7.2.290.0190.00621.86
7.2.280.0180.00523.74
7.2.270.0210.00723.82
7.2.260.0160.00923.74
7.2.250.0160.00923.77
7.2.240.0220.00323.81
7.2.230.0230.00323.68
7.2.220.0220.00223.68
7.2.210.0150.00423.61
7.2.200.0180.00623.85
7.2.190.0150.00421.58
7.2.180.0140.00421.54
7.2.170.0140.00721.56
7.2.160.0150.00521.53
7.2.150.0210.00620.81
7.2.140.0170.00520.75
7.2.130.0260.00519.82
7.2.120.0320.00519.85
7.2.110.0250.00519.79
7.2.100.0260.00419.72
7.2.90.0220.00619.78
7.2.80.0340.00619.73
7.2.70.0410.00619.80
7.2.60.0270.00719.36
7.2.50.0290.00719.72
7.2.40.0200.00919.84
7.2.30.0480.00819.76
7.2.20.0520.00619.86
7.2.10.0190.00919.84
7.2.00.0220.00819.75
7.1.330.0190.00624.32
7.1.320.0200.00524.28
7.1.310.0150.00824.27
7.1.300.0160.00721.63
7.1.290.0120.00821.57
7.1.280.0180.00321.54
7.1.270.0160.00421.63
7.1.260.0180.00721.56
7.1.250.0230.00618.97
7.1.240.0560.00518.94
7.1.230.0720.00818.85
7.1.220.0290.01118.92
7.1.210.0230.00818.92
7.1.200.0250.00718.52
7.1.190.0270.00619.00
7.1.180.0360.00918.97
7.1.170.0390.00618.97
7.1.160.0220.00418.92
7.1.150.0230.00619.00
7.1.140.0470.00418.99
7.1.130.0520.00618.94
7.1.120.0240.00518.88
7.1.110.0250.00519.08
7.1.100.0310.00618.83
7.1.90.0320.00419.00
7.1.80.0380.00819.04
7.1.70.0280.00218.66
7.1.60.0260.01019.17
7.1.50.0490.00218.88
7.1.40.0190.00618.97
7.1.30.0230.00519.07
7.1.20.0420.00618.89
7.1.10.0200.00719.02
7.1.00.0180.01619.43
7.0.330.0290.00418.62
7.0.320.0310.00418.66
7.0.310.0280.00418.72
7.0.300.0210.00818.76
7.0.290.0550.00318.73
7.0.280.0250.00618.69
7.0.270.0200.00918.72
7.0.260.0510.00518.70
7.0.250.0380.00718.68
7.0.240.0310.00818.83
7.0.230.0340.00718.80
7.0.220.0550.00818.74
7.0.210.0450.00518.77
7.0.200.0290.00918.20
7.0.190.0260.00518.76
7.0.180.0260.00718.66
7.0.170.0510.00518.75
7.0.160.0220.00918.65
7.0.150.0470.00318.67
7.0.140.0400.00518.68
7.0.130.0350.01118.79
7.0.120.0430.00618.79
7.0.110.0290.00218.76
7.0.100.0240.00518.68
7.0.90.0290.00718.72
7.0.80.0360.00818.81
7.0.70.0210.00918.78
7.0.60.0530.01518.96
7.0.50.0240.01618.67
7.0.40.0230.01618.91
7.0.30.0380.01518.90
7.0.20.0230.01118.93
7.0.10.0210.01619.05
7.0.00.0470.01419.03
5.6.400.0180.00921.10
5.6.390.0120.01121.09
5.6.380.0160.00618.81
5.6.370.0140.00718.84
5.6.360.0150.00618.84
5.6.350.0130.00718.87
5.6.340.0140.00818.84
5.6.330.0110.01018.88
5.6.320.0100.00518.93
5.6.310.0160.00618.85
5.6.300.0140.00718.83
5.6.290.0140.00718.90
5.6.280.0160.01419.18
5.6.270.0160.00518.92
5.6.260.0120.00918.89
5.6.250.0140.00718.95
5.6.240.0140.00618.90
5.6.230.0090.01018.84
5.6.220.0150.00518.89
5.6.210.0120.01819.17
5.6.200.0110.01318.74
5.6.190.0140.01319.13
5.6.180.0170.01119.17
5.6.170.0140.01419.12
5.6.160.0160.01719.14
5.6.150.0170.01519.15
5.6.140.0180.01519.16
5.6.130.0170.01619.12
5.6.120.0130.01319.06
5.6.110.0140.01619.11
5.6.100.0220.01219.04
5.6.90.0220.01319.06
5.6.80.0220.01418.87
5.6.70.0140.01719.00
5.6.60.0130.01419.00
5.6.50.0120.01818.91
5.6.40.0150.01318.97
5.6.30.0160.01518.98
5.6.20.0100.01819.02
5.6.10.0160.01218.93
5.6.00.0140.01618.94
5.5.380.0180.00417.77
5.5.370.0140.00817.76
5.5.360.0180.00517.76
5.5.350.0170.00818.19
5.5.340.0140.01017.88
5.5.330.0170.01618.18
5.5.320.0180.01218.15
5.5.310.0210.01318.20
5.5.300.0230.01218.09
5.5.290.0180.01518.12
5.5.280.0150.01718.25
5.5.270.0240.01518.08
5.5.260.0190.01518.16
5.5.250.0190.01218.05
5.5.240.0140.01418.13
5.5.230.0180.01318.03
5.5.220.0120.01618.04
5.5.210.0120.01618.02
5.5.200.0150.01418.04
5.5.190.0150.01518.01
5.5.180.0140.01818.00
5.5.170.0150.00617.76
5.5.160.0140.01417.94
5.5.150.0190.01618.01
5.5.140.0140.01717.99
5.5.130.0140.01717.96
5.5.120.0140.01617.94
5.5.110.0130.01618.01
5.5.100.0140.01618.02
5.5.90.0140.01518.03
5.5.80.0150.01417.99
5.5.70.0120.01617.98
5.5.60.0110.01518.03
5.5.50.0110.01518.00
5.5.40.0160.01217.94
5.5.30.0120.01518.00
5.5.20.0130.01218.01
5.5.10.0120.01418.01
5.5.00.0130.01217.98

preferences:
65.25 ms | 403 KiB | 5 Q