3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1 = array('foo' => 'foo', 'bar' => 'bar'); $a2 = array('zuu' => 'zuu', 'bar' => 'bar2'); var_dump($a1+$a2, array_merge($a1,$a2), array_merge($a1+$a2));

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.70.0080.00816.62
8.3.60.0140.00716.38
8.3.50.0090.00921.14
8.3.40.0150.00618.63
8.3.30.0060.00918.93
8.3.20.0070.00020.17
8.3.10.0050.00321.78
8.3.00.0080.00017.46
8.2.190.0120.00618.04
8.2.180.0150.00418.54
8.2.170.0070.00722.96
8.2.160.0030.01020.29
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.07
8.2.110.0070.00421.03
8.2.100.0070.00417.63
8.2.90.0000.00818.94
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0040.00417.68
8.2.50.0040.00418.07
8.2.40.0000.00819.95
8.2.30.0020.00518.06
8.2.20.0040.00417.59
8.2.10.0050.00217.85
8.2.00.0050.00317.84
8.1.280.0120.00625.92
8.1.270.0030.00522.15
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00317.83
8.1.230.0070.00417.54
8.1.220.0070.00017.74
8.1.210.0030.00518.77
8.1.200.0060.00617.23
8.1.190.0000.00817.22
8.1.180.0030.00518.10
8.1.170.0060.00320.16
8.1.160.0000.00721.84
8.1.150.0000.00818.76
8.1.140.0030.00617.42
8.1.130.0000.00717.68
8.1.120.0000.01017.27
8.1.110.0000.00717.36
8.1.100.0000.00717.39
8.1.90.0050.00217.32
8.1.80.0050.00317.36
8.1.70.0080.00017.41
8.1.60.0000.00817.43
8.1.50.0000.00717.33
8.1.40.0000.00817.33
8.1.30.0000.00917.50
8.1.20.0030.00517.46
8.1.10.0000.00717.41
8.1.00.0000.00717.41
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0040.00418.42
8.0.270.0000.00717.21
8.0.260.0000.00617.17
8.0.250.0040.00416.84
8.0.240.0050.00216.90
8.0.230.0000.00716.83
8.0.220.0080.00016.84
8.0.210.0070.00016.79
8.0.200.0070.00016.97
8.0.190.0040.00416.90
8.0.180.0070.00016.89
8.0.170.0000.00816.91
8.0.160.0040.00416.87
8.0.150.0000.00716.84
8.0.140.0000.00716.83
8.0.130.0030.00313.36
8.0.120.0000.00816.77
8.0.110.0040.00416.85
8.0.100.0000.00716.98
8.0.90.0030.00316.87
8.0.80.0030.01416.88
8.0.70.0040.00416.94
8.0.60.0070.00016.69
8.0.50.0070.00016.70
8.0.30.0090.01217.00
8.0.20.0130.01117.40
8.0.10.0040.00417.06
8.0.00.0140.00616.49
7.4.330.0000.00515.09
7.4.320.0030.00516.53
7.4.300.0000.00616.41
7.4.290.0040.00416.41
7.4.280.0040.00416.43
7.4.270.0030.00316.40
7.4.260.0040.00416.52
7.4.250.0040.00416.52
7.4.240.0040.00316.55
7.4.230.0000.00716.53
7.4.220.0090.01116.52
7.4.210.0030.01116.46
7.4.200.0070.00016.35
7.4.160.0080.00816.21
7.4.150.0030.01717.40
7.4.140.0150.01017.86
7.4.130.0130.00516.35
7.4.120.0110.00716.41
7.4.110.0120.00616.36
7.4.100.0110.00716.58
7.4.90.0100.00716.19
7.4.80.0150.00919.39
7.4.70.0030.01416.43
7.4.60.0030.01316.36
7.4.50.0050.00316.40
7.4.40.0000.01616.48
7.4.30.0120.00916.23
7.4.00.0070.00714.94
7.3.330.0030.00313.13
7.3.320.0040.01113.02
7.3.310.0000.00816.07
7.3.300.0060.00016.04
7.3.290.0000.00716.18
7.3.280.0120.00616.19
7.3.270.0070.01017.40
7.3.260.0000.02116.52
7.3.250.0110.00916.41
7.3.240.0130.00716.40
7.3.230.0140.00916.53
7.3.210.0160.00416.14
7.3.200.0110.00719.39
7.3.190.0050.01016.40
7.3.180.0100.01016.21
7.3.170.0090.00916.57
7.3.160.0100.00716.13
7.2.330.0090.00916.53
7.2.320.0170.00716.23
7.2.310.0140.00316.33
7.2.300.0040.01816.55
7.2.290.0060.01216.60
7.2.60.0060.00916.80
7.2.00.0060.00619.45
7.1.200.0070.00715.84
7.1.100.0040.00718.04
7.1.70.0000.00817.14
7.1.60.0100.01319.50
7.1.50.0060.01616.96
7.1.00.0030.07322.35
7.0.200.0030.00616.84
7.0.60.0130.07319.96
7.0.50.0100.06017.87
7.0.40.0000.09720.30
7.0.30.0200.04720.10
7.0.20.0200.04320.24
7.0.10.0030.08720.00
7.0.00.0100.05719.96
5.6.280.0070.07020.97
5.6.210.0030.07720.69
5.6.200.0000.04718.09
5.6.190.0000.06320.43
5.6.180.0270.05020.33
5.6.170.0230.04720.37
5.6.160.0130.06320.38
5.6.150.0100.06318.16
5.6.140.0070.04018.23
5.6.130.0030.06718.09
5.6.120.0130.08320.89
5.6.110.0000.04720.98
5.6.100.0100.05320.96
5.6.90.0130.03320.94
5.6.80.0100.06320.41
5.6.70.4400.03720.49
5.5.350.0170.03720.43
5.5.340.0130.07317.98
5.5.330.0100.03720.13
5.5.320.0300.05320.21
5.5.310.0270.05020.29
5.5.300.0100.04017.91
5.5.290.0030.04317.95
5.5.280.0070.04320.88
5.5.270.0070.08020.73
5.5.260.0130.08020.88
5.5.250.0170.07020.68
5.5.240.4170.03720.03
5.4.450.0030.04319.48
5.4.440.0370.06019.48
5.4.430.0770.03319.12
5.4.420.0130.05319.43
5.4.410.0130.05318.83
5.4.400.0130.05018.61
5.4.390.0070.05718.77
5.4.380.0070.05718.59
5.4.370.0100.05318.58
5.4.360.0100.05318.49
5.4.350.0170.05018.71
5.4.340.0270.05318.59
5.4.320.0070.06018.71
5.4.310.0200.04318.56
5.4.300.0230.05318.76
5.4.290.0130.05018.67
5.4.280.0130.06718.71
5.4.270.0270.05018.55
5.4.260.0170.05018.73
5.4.250.0170.04718.63
5.4.240.0100.05318.46
5.4.230.0000.06318.50
5.4.220.0200.06718.48
5.4.210.0170.05018.47
5.4.200.0100.05316.43
5.4.190.0100.06018.67
5.4.180.0130.05318.49
5.4.170.0100.05718.43
5.4.160.0030.06718.44
5.4.150.0100.05718.54
5.4.140.0030.06016.31
5.4.130.0070.05316.07
5.4.120.0130.06016.15
5.4.110.0130.04316.25
5.4.100.0070.05316.24
5.4.90.0100.05016.20
5.4.80.0100.06716.14
5.4.70.0130.05016.12
5.4.60.0070.05316.15
5.4.50.0030.05716.17
5.4.40.0170.04716.21
5.4.30.0130.04716.02
5.4.20.0100.05016.02
5.4.10.0230.03716.00
5.4.00.0170.04015.71
5.3.290.0200.04314.61
5.3.280.0200.04314.50
5.3.270.0100.07314.55
5.3.260.0130.07314.58
5.3.250.0200.06714.57
5.3.240.0130.05714.61
5.3.230.0070.06014.67
5.3.220.0100.06314.61
5.3.210.0100.05314.53
5.3.200.0130.04714.54
5.3.190.0130.05014.46
5.3.180.0130.06314.61
5.3.170.0230.04014.47
5.3.160.0130.07014.63
5.3.150.0070.05714.55
5.3.140.0170.04714.56
5.3.130.0170.07014.63
5.3.120.0030.07014.57
5.3.110.0130.06014.51
5.3.100.0170.04314.03
5.3.90.0170.05013.91
5.3.80.0100.05714.00
5.3.70.0170.04713.92
5.3.60.0100.05013.99
5.3.50.0200.05713.89
5.3.40.0170.04313.93
5.3.30.0270.05013.89
5.3.20.0200.04713.68
5.3.10.0030.05713.59
5.3.00.0000.06013.55
5.2.170.0070.05311.22
5.2.160.0100.05011.18
5.2.150.0070.04311.11
5.2.140.0100.04711.13
5.2.130.0000.05011.04
5.2.120.0070.05311.08
5.2.110.0100.03711.25
5.2.100.0070.04011.03
5.2.90.0030.04311.16
5.2.80.0030.04711.08
5.2.70.0070.05311.13
5.2.60.0030.04711.02
5.2.50.0170.03311.00
5.2.40.0030.04711.04
5.2.30.0070.04011.00
5.2.20.0030.05011.11
5.2.10.0170.04010.91
5.2.00.0070.05010.78
5.1.60.0170.03310.01
5.1.50.0100.0309.95
5.1.40.0030.0379.99
5.1.30.0070.03710.39
5.1.20.0070.03710.36
5.1.10.0070.03710.06
5.1.00.0070.04010.13
5.0.50.0000.0338.57
5.0.40.0030.0308.42
5.0.30.0100.0438.27
5.0.20.0070.0278.22
5.0.10.0100.0338.29
5.0.00.0070.0508.34
4.4.90.0130.0175.88
4.4.80.0070.0235.90
4.4.70.0070.0205.89
4.4.60.0000.0275.89
4.4.50.0100.0205.87
4.4.40.0000.0435.86
4.4.30.0170.0135.89
4.4.20.0070.0205.96
4.4.10.0030.0235.98
4.4.00.0000.0375.96
4.3.110.0030.0205.80
4.3.100.0000.0235.79
4.3.90.0030.0205.77
4.3.80.0030.0335.80
4.3.70.0000.0235.86
4.3.60.0070.0175.77
4.3.50.0000.0235.89
4.3.40.0070.0305.77
4.3.30.0000.0274.63
4.3.20.0070.0234.53
4.3.10.0030.0204.47
4.3.00.0100.01315.57

preferences:
64.91 ms | 401 KiB | 5 Q