3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1[0] = array('foo'=>'bar'); $arr2[0] = array('foo'=>'notbar'); $result = array_merge($arr1, $arr2); print_r($result);

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.0140.00016.50
8.3.50.0090.00621.95
8.3.40.0060.00918.79
8.3.30.0100.00319.04
8.3.20.0000.00720.34
8.3.10.0040.00423.66
8.3.00.0000.00818.98
8.2.180.0000.01518.29
8.2.170.0070.00722.96
8.2.160.0150.00022.25
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0030.00522.07
8.2.110.0040.00422.26
8.2.100.0120.00017.78
8.2.90.0000.00719.09
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0000.00817.80
8.2.50.0080.00018.07
8.2.40.0050.00319.88
8.2.30.0040.00418.11
8.2.20.0050.00217.54
8.2.10.0000.00818.04
8.2.00.0080.00017.73
8.1.280.0070.00725.92
8.1.270.0090.01223.80
8.1.260.0030.00526.35
8.1.250.0110.00328.09
8.1.240.0030.00622.20
8.1.230.0040.00718.85
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0030.00617.23
8.1.190.0040.00417.25
8.1.180.0040.00418.10
8.1.170.0060.00318.52
8.1.160.0000.00721.95
8.1.150.0070.00018.62
8.1.140.0040.00417.38
8.1.130.0030.00317.86
8.1.120.0050.00217.35
8.1.110.0020.00517.44
8.1.100.0040.00417.24
8.1.90.0050.00217.28
8.1.80.0040.00417.35
8.1.70.0000.00717.29
8.1.60.0000.01217.46
8.1.50.0030.00517.30
8.1.40.0000.00817.34
8.1.30.0000.00817.52
8.1.20.0070.00017.58
8.1.10.0000.00817.50
8.1.00.0040.00417.37
8.0.300.0070.00018.77
8.0.290.0000.00717.05
8.0.280.0070.00018.42
8.0.270.0070.00417.23
8.0.260.0030.00317.25
8.0.250.0030.00316.77
8.0.240.0050.00416.90
8.0.230.0030.00316.72
8.0.220.0030.00316.83
8.0.210.0040.00416.70
8.0.200.0060.00016.87
8.0.190.0070.00016.89
8.0.180.0000.00816.68
8.0.170.0030.00616.87
8.0.160.0040.00416.80
8.0.150.0030.00516.75
8.0.140.0080.00016.67
8.0.130.0000.00613.26
8.0.120.0000.00716.79
8.0.110.0040.00416.79
8.0.100.0050.00216.73
8.0.90.0050.00216.86
8.0.80.0130.00316.77
8.0.70.0040.00416.93
8.0.60.0070.00016.69
8.0.50.0070.00016.85
8.0.30.0070.01517.10
8.0.20.0050.01217.40
8.0.10.0000.00716.79
8.0.00.0110.00616.74
7.4.330.0050.00315.00
7.4.320.0040.00416.47
7.4.300.0000.00616.54
7.4.290.0030.00316.59
7.4.280.0030.00316.53
7.4.270.0040.00416.38
7.4.260.0060.00016.44
7.4.250.0030.00516.49
7.4.240.0030.00416.50
7.4.230.0070.00016.63
7.4.220.0030.01716.39
7.4.210.0040.01216.48
7.4.200.0000.00716.31
7.4.190.0000.00816.60
7.4.160.0130.00716.52
7.4.150.0120.00617.40
7.4.140.0120.00517.86
7.4.130.0070.01216.43
7.4.120.0080.00816.58
7.4.110.0000.01716.43
7.4.100.0070.01416.31
7.4.90.0060.01216.60
7.4.80.0090.01319.39
7.4.70.0070.01016.59
7.4.60.0130.00316.23
7.4.50.0040.00416.42
7.4.40.0180.00016.52
7.4.30.0110.01016.36
7.4.00.0080.00815.00
7.3.330.0000.00513.13
7.3.320.0000.00513.11
7.3.310.0020.00516.13
7.3.300.0000.00716.14
7.3.290.0140.00016.20
7.3.280.0100.01016.18
7.3.270.0100.00717.40
7.3.260.0080.00916.23
7.3.250.0070.00916.40
7.3.240.0080.00816.14
7.3.230.0140.00316.39
7.3.210.0140.00316.25
7.3.200.0070.01019.39
7.3.190.0030.01616.22
7.3.180.0040.01216.42
7.3.170.0100.01016.53
7.3.160.0180.00316.14
7.3.120.0030.01314.61
7.2.330.0210.00416.75
7.2.320.0080.00816.40
7.2.310.0110.00616.45
7.2.300.0110.00616.51
7.2.290.0140.00916.67
7.2.00.0000.01719.37
7.1.200.0120.00914.98
7.1.100.0180.00317.89
7.1.70.0000.00717.23
7.1.60.0110.01419.46
7.1.50.0090.01516.85
7.1.00.0000.08022.54
7.0.200.0060.00616.66
7.0.140.0070.07021.95
7.0.60.0000.08719.91
7.0.50.0130.08017.94
7.0.40.0100.04720.30
7.0.30.0270.08320.09
7.0.20.0270.07720.05
7.0.10.0070.08020.15
7.0.00.0030.05320.25
5.6.280.0000.07720.77
5.6.210.0070.05720.55
5.6.200.0070.07718.15
5.6.190.0070.03720.61
5.6.180.0000.06020.48
5.6.170.0170.04720.47
5.6.160.0030.06320.44
5.6.150.0070.04018.27
5.6.140.0000.07318.17
5.6.130.0070.07018.13
5.6.120.0030.05720.97
5.6.110.0130.07720.96
5.6.100.0030.06321.00
5.6.90.0100.08020.94
5.6.80.0030.04020.40
5.5.350.4170.04720.52
5.5.340.0030.08717.95
5.5.330.0170.06720.30
5.5.320.0170.05020.23
5.5.310.0370.07020.33
5.5.300.0100.06017.95
5.5.290.0100.07717.94
5.5.280.0030.08720.94
5.5.270.0100.08020.64
5.5.260.0030.05020.86
5.5.250.0130.08320.45
5.5.240.0030.08320.25
5.4.450.0030.06719.46
5.4.440.0200.05319.09
5.4.430.1530.05719.30
5.4.420.0770.07019.66
5.4.410.1100.06319.25
5.4.400.1030.05719.06
5.4.390.1100.05019.05
5.4.380.0270.04318.61
5.4.370.0100.06018.83
5.4.360.0200.04718.63
5.4.350.0170.05018.74
5.4.340.0270.04018.75
5.4.320.0040.03812.48
5.4.310.0060.04012.48
5.4.300.0090.03412.48
5.4.290.0040.04312.48
5.4.280.0060.03712.37
5.4.270.0100.03412.37
5.4.260.0080.05512.38
5.4.250.0090.04012.38
5.4.240.0090.04012.37
5.4.230.0100.04712.36
5.4.220.0070.04312.37
5.4.210.0080.04512.36
5.4.200.0060.04812.37
5.4.190.0080.03912.36
5.4.180.0070.04012.36
5.4.170.0100.03912.38
5.4.160.0110.04512.37
5.4.150.0150.05712.36
5.4.140.0200.08412.05
5.4.130.0180.06012.04
5.4.120.0140.05712.00
5.4.110.0100.05411.99
5.4.100.0160.05711.99
5.4.90.0160.12211.99
5.4.80.0130.06111.99
5.4.70.0060.06111.99
5.4.60.0240.11211.98
5.4.50.0220.08411.99
5.4.40.0160.05511.98
5.4.30.0170.05511.97
5.4.20.0180.05711.97
5.4.10.0490.20011.97
5.4.00.0230.09511.46
5.3.290.0050.04012.80
5.3.280.0210.06312.71
5.3.270.0240.08312.72
5.3.260.0140.05412.72
5.3.250.0230.07512.72
5.3.240.0120.04912.72
5.3.230.0130.05212.71
5.3.220.0170.06412.68
5.3.210.0130.06312.68
5.3.200.0150.05312.68
5.3.190.0100.05512.68
5.3.180.0060.05512.68
5.3.170.0100.05012.67
5.3.160.0130.05212.67
5.3.150.0090.05512.68
5.3.140.0110.05212.66
5.3.130.0110.05012.66
5.3.120.0150.06012.66
5.3.110.0110.05612.66
5.3.100.0080.05012.12
5.3.90.0130.05312.09
5.3.80.0170.07112.08
5.3.70.0070.07012.08
5.3.60.0210.09712.07
5.3.50.0080.04812.01
5.3.40.0220.06012.01
5.3.30.0110.06811.97
5.3.20.0160.06411.75
5.3.10.0140.06711.71
5.3.00.0090.04311.71
5.2.170.0140.0449.21
5.2.160.0070.0409.20
5.2.150.0310.0369.20
5.2.140.0040.0509.20
5.2.130.0100.0569.16
5.2.120.0100.0409.16
5.2.110.0120.0359.17
5.2.100.0100.0309.16
5.2.90.0050.0409.17
5.2.80.0120.0539.16
5.2.70.0110.0499.16
5.2.60.0120.0669.12
5.2.50.0040.0349.08
5.2.40.0080.0319.06
5.2.30.0090.0319.04
5.2.20.0060.0409.02
5.2.10.0160.0608.94
5.2.00.0090.0338.79
5.1.60.0120.0378.06
5.1.50.0120.0378.05
5.1.40.0060.0328.04
5.1.30.0110.0338.39
5.1.20.0110.0448.41
5.1.10.0070.0338.14
5.1.00.0070.0648.13
5.0.50.0070.0446.62
5.0.40.0100.0566.47
5.0.30.0060.0936.29
5.0.20.0160.0546.26
5.0.10.0220.0746.24
5.0.00.0070.0516.23
4.4.90.0040.0204.78
4.4.80.0030.0184.76
4.4.70.0030.0214.75
4.4.60.0050.0204.75
4.4.50.0050.0174.77
4.4.40.0030.0334.71
4.4.30.0020.0334.76
4.4.20.0040.0184.84
4.4.10.0150.0504.85
4.4.00.0040.0274.76
4.3.110.0160.0414.67
4.3.100.0070.0274.66
4.3.90.0060.0224.63
4.3.80.0020.0324.59
4.3.70.0050.0194.63
4.3.60.0090.0364.63
4.3.50.0030.0334.63
4.3.40.0070.0364.53
4.3.30.0050.0323.28
4.3.20.0000.0193.26
4.3.10.0020.0213.21
4.3.00.0000.0237.71

preferences:
39.77 ms | 401 KiB | 5 Q