3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array( 'a' => 1, 'b' => 2, ); $array2 = array( 'b' => 22, 'c' => 3, ); var_dump(array_merge($array1, $array2));

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.0090.00918.33
8.3.50.0260.00522.82
8.3.40.0110.00718.77
8.3.30.0070.00718.92
8.3.20.0040.00420.24
8.3.10.0070.00723.66
8.3.00.0000.00819.13
8.2.180.0100.01016.38
8.2.170.0110.01119.01
8.2.160.0100.00722.96
8.2.150.0150.00324.18
8.2.140.0100.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00421.08
8.2.110.0080.00022.20
8.2.100.0090.00317.84
8.2.90.0000.00818.92
8.2.80.0080.00017.97
8.2.70.0050.00317.50
8.2.60.0030.00517.93
8.2.50.0000.00818.07
8.2.40.0000.00819.79
8.2.30.0000.00718.04
8.2.20.0070.00017.51
8.2.10.0040.00417.98
8.2.00.0050.00317.48
8.1.280.0170.00325.92
8.1.270.0060.00323.83
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00023.91
8.1.230.0070.00419.10
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0050.00517.35
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0050.00318.35
8.1.160.0000.00721.97
8.1.150.0000.00718.81
8.1.140.0000.00717.30
8.1.130.0000.00717.77
8.1.120.0000.00717.41
8.1.110.0020.00517.41
8.1.100.0030.00317.24
8.1.90.0060.00317.42
8.1.80.0040.00417.27
8.1.70.0000.00717.33
8.1.60.0000.00817.41
8.1.50.0090.00017.32
8.1.40.0070.00017.53
8.1.30.0090.00017.59
8.1.20.0050.00317.58
8.1.10.0080.00017.43
8.1.00.0000.00717.31
8.0.300.0000.00820.66
8.0.290.0040.00416.58
8.0.280.0000.00718.43
8.0.270.0040.00417.13
8.0.260.0000.00617.09
8.0.250.0000.00716.94
8.0.240.0030.00316.72
8.0.230.0060.00016.82
8.0.220.0000.00716.66
8.0.210.0000.00816.73
8.0.200.0050.00316.83
8.0.190.0030.00616.71
8.0.180.0040.00416.82
8.0.170.0040.00416.85
8.0.160.0000.00716.83
8.0.150.0000.00716.77
8.0.140.0030.00616.84
8.0.130.0000.00813.20
8.0.120.0030.00616.67
8.0.110.0040.00416.79
8.0.100.0000.00716.59
8.0.90.0000.00716.86
8.0.80.0070.01116.85
8.0.70.0070.00016.70
8.0.60.0000.00716.67
8.0.50.0050.00316.71
8.0.30.0170.00516.97
8.0.20.0120.00717.40
8.0.10.0060.00316.87
8.0.00.0110.00716.80
7.4.330.0060.00015.08
7.4.320.0060.00016.38
7.4.300.0030.00316.43
7.4.290.0040.00416.36
7.4.280.0080.00016.56
7.4.270.0070.00016.53
7.4.260.0000.00716.48
7.4.250.0070.00016.48
7.4.240.0000.00716.41
7.4.230.0030.00316.50
7.4.220.0130.01316.53
7.4.210.0090.00616.30
7.4.200.0030.00516.52
7.4.160.0120.00416.39
7.4.150.0090.00917.40
7.4.140.0160.00817.86
7.4.130.0110.01116.52
7.4.120.0080.01116.51
7.4.110.0150.00316.52
7.4.100.0090.00916.30
7.4.90.0110.00716.45
7.4.80.0090.01519.39
7.4.70.0150.00316.43
7.4.60.0090.01216.38
7.4.50.0050.00316.52
7.4.40.0040.01216.37
7.4.30.0120.00616.45
7.4.00.0090.00614.84
7.3.330.0030.00313.04
7.3.320.0050.00013.12
7.3.310.0070.00016.06
7.3.300.0030.00316.13
7.3.290.0030.01216.13
7.3.280.0090.00816.10
7.3.270.0090.01217.40
7.3.260.0070.01116.13
7.3.240.0120.00316.16
7.3.230.0090.00816.39
7.3.210.0070.01516.17
7.3.200.0120.01219.39
7.3.190.0090.00916.28
7.3.180.0130.00316.05
7.3.170.0090.01216.27
7.3.160.0030.01216.52
7.3.120.0130.00614.69
7.3.110.0070.00714.83
7.3.100.0070.01014.68
7.3.90.0070.01114.53
7.3.80.0000.01214.61
7.3.70.0060.00314.79
7.3.60.0040.00714.80
7.3.50.0070.00714.57
7.3.40.0120.00314.46
7.3.30.0040.01114.50
7.3.20.0070.00716.74
7.3.10.0070.00716.70
7.3.00.0030.00716.48
7.2.330.0140.01016.32
7.2.320.0090.00916.47
7.2.310.0060.01616.41
7.2.300.0090.00616.46
7.2.290.0060.00916.22
7.2.240.0060.01215.00
7.2.230.0110.00315.04
7.2.220.0090.00315.05
7.2.210.0070.01014.83
7.2.200.0000.01614.62
7.2.190.0000.01314.59
7.2.180.0040.01114.55
7.2.170.0130.00014.69
7.2.160.0040.00814.87
7.2.150.0040.00716.69
7.2.140.0070.01016.65
7.2.130.0060.00916.71
7.2.120.0030.01016.42
7.2.110.0060.01216.64
7.2.100.0040.00716.68
7.2.90.0070.01016.96
7.2.80.0060.00916.80
7.2.70.0070.00716.30
7.2.60.0060.00816.72
7.2.50.0030.01516.60
7.2.40.0100.01016.81
7.2.30.0030.01316.64
7.2.20.0040.00816.59
7.2.10.0070.00716.65
7.2.00.0070.00917.98
7.1.330.0110.00715.61
7.1.320.0030.01315.50
7.1.310.0060.00615.59
7.1.300.0070.01015.85
7.1.290.0090.00615.89
7.1.280.0030.00915.75
7.1.270.0060.00615.73
7.1.260.0060.00915.93
7.1.250.0030.01315.71
7.1.200.0120.00015.69
7.1.100.0030.01018.07
7.1.70.0040.00417.16
7.1.60.0140.01019.40
7.1.50.0100.00716.92
7.1.00.0070.07322.30
7.0.200.0030.00714.55
7.0.140.0070.06722.04
7.0.60.0000.08019.92
7.0.50.0070.08317.80
7.0.40.0070.04719.96
7.0.30.0200.06320.02
7.0.20.0330.05020.16
7.0.10.0000.06020.13
7.0.00.0070.04020.30
5.6.280.0070.07021.06
5.6.210.0100.06020.47
5.6.200.0070.08018.19
5.6.190.0070.05320.64
5.6.180.0300.07720.64
5.6.170.0300.07020.48
5.6.160.0070.05020.40
5.6.150.0000.04718.18
5.6.140.0100.04018.20
5.6.130.0100.04318.09
5.6.120.0030.08721.04
5.6.110.0030.08721.02
5.6.100.0030.06021.12
5.6.90.0070.07721.09
5.6.80.0070.07320.25
5.5.350.4170.03720.45
5.5.340.0000.05017.95
5.5.330.0100.08320.41
5.5.320.0200.04720.51
5.5.310.0400.07020.12
5.5.300.0000.05717.90
5.5.290.0100.04318.00
5.5.280.0100.05320.76
5.5.270.0070.05020.88
5.5.260.0170.07320.83
5.5.250.0070.07020.65
5.5.240.0000.08020.18
5.4.450.0730.06019.47
5.4.440.0600.05719.61
5.4.430.0400.05719.48
5.4.420.0830.06019.14
5.4.410.0630.06719.43
5.4.400.0530.06019.12
5.4.390.0700.05319.00
5.4.380.0100.06018.66
5.4.370.0170.04018.48
5.4.360.0130.03718.61
5.4.350.0070.03711.98
5.4.340.0100.03511.97
5.4.320.0110.03412.45
5.4.310.0200.05012.45
5.4.300.0050.04212.45
5.4.290.0110.04212.45
5.4.280.0070.04412.34
5.4.270.0100.04912.34
5.4.260.0040.04112.34
5.4.250.0050.03912.35
5.4.240.0130.03512.34
5.4.230.0070.04012.34
5.4.220.0130.03812.34
5.4.210.0070.03712.34
5.4.200.0070.03712.34
5.4.190.0060.04012.34
5.4.180.0090.05012.33
5.4.170.0090.05012.34
5.4.160.0080.03712.34
5.4.150.0070.03912.34
5.4.140.0100.03312.02
5.4.130.0080.03312.01
5.4.120.0080.04411.97
5.4.110.0040.03811.96
5.4.100.0060.03511.96
5.4.90.0050.03911.96
5.4.80.0030.04111.96
5.4.70.0050.03611.96
5.4.60.0030.03811.96
5.4.50.0060.05111.96
5.4.40.0090.03711.95
5.4.30.0070.03511.94
5.4.20.0080.03411.95
5.4.10.0080.03311.94
5.4.00.0090.03211.43
5.3.290.0070.03912.80
5.3.280.0060.03712.71
5.3.270.0070.03812.73
5.3.260.0080.04512.72
5.3.250.0060.03912.72
5.3.240.0090.03412.71
5.3.230.0060.03912.71
5.3.220.0070.03712.68
5.3.210.0060.04012.68
5.3.200.0060.03612.68
5.3.190.0090.05012.68
5.3.180.0100.03912.67
5.3.170.0080.03512.67
5.3.160.0050.03812.68
5.3.150.0110.03712.68
5.3.140.0060.04012.66
5.3.130.0110.05212.66
5.3.120.0070.04512.66
5.3.110.0160.05712.66
5.3.100.0080.04912.12
5.3.90.0110.04812.08
5.3.80.0160.05612.07
5.3.70.0140.06412.08
5.3.60.0110.06312.07
5.3.50.0110.04712.00
5.3.40.0070.03712.00
5.3.30.0070.03711.95
5.3.20.0150.06011.72
5.3.10.0160.07411.69
5.3.00.0080.05211.67
5.2.170.0070.0339.18
5.2.160.0050.0439.18
5.2.150.0180.0409.18
5.2.140.0140.0349.17
5.2.130.0060.0419.14
5.2.120.0110.0399.13
5.2.110.0080.0369.14
5.2.100.0070.0299.14
5.2.90.0070.0309.14
5.2.80.0070.0359.13
5.2.70.0080.0359.14
5.2.60.0070.0299.09
5.2.50.0120.0429.06
5.2.40.0120.0449.03
5.2.30.0040.0379.00
5.2.20.0050.0289.00
5.2.10.0040.0298.92
5.2.00.0050.0298.78
5.1.60.0030.0258.06
5.1.50.0040.0248.05
5.1.40.0030.0268.04
5.1.30.0060.0248.39
5.1.20.0030.0288.41
5.1.10.0060.0248.13
5.1.00.0040.0268.14
5.0.50.0020.0226.61
5.0.40.0050.0186.47
5.0.30.0050.0306.29
5.0.20.0010.0226.26
5.0.10.0030.0206.23
5.0.00.0040.0326.23
4.4.90.0030.0164.78
4.4.80.0020.0174.75
4.4.70.0040.0204.76
4.4.60.0030.0214.76
4.4.50.0030.0214.77
4.4.40.0070.0294.71
4.4.30.0050.0194.76
4.4.20.0060.0184.85
4.4.10.0030.0164.85
4.4.00.0060.0224.76
4.3.110.0010.0174.67
4.3.100.0030.0154.66
4.3.90.0040.0144.64
4.3.80.0070.0204.59
4.3.70.0010.0164.63
4.3.60.0030.0204.63
4.3.50.0040.0164.63
4.3.40.0040.0224.54
4.3.30.0020.0163.28
4.3.20.0030.0153.26
4.3.10.0030.0153.22
4.3.00.0170.0178.45

preferences:
42.91 ms | 401 KiB | 5 Q