3v4l.org

run code in 300+ PHP versions simultaneously
<?php $one = array(2 => '2'); $two = array(2 => '2'); print_r(array_merge($one, $two)); print_r($one + $two); $two += $one; print_r($two);

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.00618.30
8.3.50.0120.00621.21
8.3.40.0040.01118.84
8.3.30.0040.01118.95
8.3.20.0090.00020.16
8.3.10.0040.00423.61
8.3.00.0090.00019.80
8.2.180.0170.00318.54
8.2.170.0160.00018.82
8.2.160.0120.00622.96
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00419.36
8.2.110.0060.00322.20
8.2.100.0080.00318.22
8.2.90.0030.00619.17
8.2.80.0030.00617.97
8.2.70.0060.00317.50
8.2.60.0090.00017.93
8.2.50.0040.00418.07
8.2.40.0040.00419.71
8.2.30.0040.00418.11
8.2.20.0050.00217.75
8.2.10.0000.00717.87
8.2.00.0020.00518.03
8.1.280.0180.00325.92
8.1.270.0040.00420.25
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.96
8.1.230.0040.00719.22
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.36
8.1.190.0000.00817.22
8.1.180.0050.00318.10
8.1.170.0000.00818.51
8.1.160.0000.00721.90
8.1.150.0040.00418.82
8.1.140.0050.00517.34
8.1.130.0030.00317.70
8.1.120.0040.00417.46
8.1.110.0000.00817.34
8.1.100.0040.00417.37
8.1.90.0080.00017.37
8.1.80.0030.00317.37
8.1.70.0070.00017.29
8.1.60.0060.00317.50
8.1.50.0000.00817.34
8.1.40.0000.00817.43
8.1.30.0080.00017.54
8.1.20.0000.00917.53
8.1.10.0000.00817.38
8.1.00.0050.00217.35
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0030.00318.25
8.0.270.0000.00717.10
8.0.260.0030.00318.29
8.0.250.0030.00316.85
8.0.240.0040.00416.93
8.0.230.0000.00717.00
8.0.220.0000.00716.77
8.0.210.0000.00716.84
8.0.200.0030.00316.93
8.0.190.0000.00816.85
8.0.180.0000.00816.92
8.0.170.0040.00416.88
8.0.160.0080.00016.79
8.0.150.0040.00416.71
8.0.140.0000.00716.89
8.0.130.0040.00413.29
8.0.120.0030.00516.83
8.0.110.0060.00316.72
8.0.100.0030.00516.80
8.0.90.0080.00017.00
8.0.80.0000.01616.88
8.0.70.0070.00016.88
8.0.60.0050.00316.95
8.0.50.0040.00416.93
8.0.30.0050.01417.05
8.0.20.0110.00717.40
8.0.10.0000.00716.88
8.0.00.0130.00416.82
7.4.330.0000.00615.07
7.4.320.0030.00316.36
7.4.300.0000.00616.48
7.4.290.0030.00316.47
7.4.280.0070.00016.38
7.4.270.0000.00716.42
7.4.260.0030.00616.32
7.4.250.0070.00016.35
7.4.240.0020.00616.50
7.4.230.0020.00516.58
7.4.220.0100.01016.55
7.4.210.0160.00316.46
7.4.200.0050.00316.64
7.4.160.0090.00616.21
7.4.150.0120.00617.40
7.4.140.0080.01217.86
7.4.130.0030.01416.44
7.4.120.0110.00516.32
7.4.110.0110.00616.15
7.4.100.0100.01616.46
7.4.90.0070.01016.49
7.4.80.0030.01719.39
7.4.70.0110.00816.47
7.4.60.0180.00516.29
7.4.50.0050.00516.42
7.4.40.0090.01416.58
7.4.30.0150.00716.38
7.4.00.0060.01114.84
7.3.330.0050.00313.15
7.3.320.0030.00313.10
7.3.310.0030.00316.09
7.3.300.0030.00316.17
7.3.290.0070.00716.22
7.3.280.0100.00916.20
7.3.270.0170.00017.40
7.3.260.0130.01016.41
7.3.250.0120.00916.33
7.3.240.0080.00816.32
7.3.230.0150.00316.39
7.3.210.0080.00816.36
7.3.200.0090.00619.39
7.3.190.0130.00316.39
7.3.180.0090.00616.36
7.3.170.0110.01116.31
7.3.160.0040.01516.56
7.3.120.0090.00914.64
7.3.110.0030.01414.86
7.3.100.0130.00314.65
7.3.90.0090.00614.85
7.3.80.0040.01114.70
7.3.70.0060.00614.66
7.3.60.0140.00014.71
7.3.50.0060.00914.90
7.3.40.0060.01314.88
7.3.30.0000.01114.56
7.3.20.0030.01016.72
7.3.10.0100.00316.82
7.3.00.0030.01016.77
7.2.330.0100.01016.55
7.2.320.0170.01016.59
7.2.310.0100.00616.64
7.2.300.0160.00616.43
7.2.290.0150.00916.37
7.2.250.0030.01514.75
7.2.240.0100.01014.96
7.2.230.0040.01115.02
7.2.220.0170.00014.75
7.2.210.0030.01414.95
7.2.200.0060.01115.11
7.2.190.0100.00714.84
7.2.180.0000.01914.89
7.2.170.0040.01115.06
7.2.00.0030.01419.39
7.1.330.0070.01015.86
7.1.320.0090.00015.91
7.1.310.0030.01215.72
7.1.300.0030.01415.48
7.1.290.0070.01115.91
7.1.280.0070.01015.54
7.1.270.0030.00815.63
7.1.260.0030.01015.90
7.1.100.0000.00818.08
7.1.70.0030.00617.35
7.1.60.0070.01819.86
7.1.50.0160.00616.78
7.1.00.0000.08022.28
7.0.200.0090.00914.93
7.0.60.0100.08319.91
7.0.50.0030.08317.85
7.0.40.0100.06320.11
7.0.30.0130.04720.24
7.0.20.0130.04720.09
7.0.10.0000.04720.11
7.0.00.0070.04720.08
5.6.280.0030.07320.89
5.6.210.0070.07320.69
5.6.200.0070.08718.16
5.6.190.0100.04720.67
5.6.180.0330.07320.67
5.6.170.0270.05320.50
5.6.160.0030.05320.48
5.6.150.0070.04718.17
5.6.140.0100.06318.15
5.6.130.0170.07018.17
5.6.120.0100.07720.96
5.6.110.0030.04021.04
5.6.100.0030.06020.96
5.6.90.0170.03320.96
5.6.80.0100.06720.25
5.5.350.0200.06720.34
5.5.340.0130.07717.98
5.5.330.0070.05020.21
5.5.320.0230.04720.30
5.5.310.0300.05020.18
5.5.300.0100.03717.95
5.5.290.0070.04017.96
5.5.280.0070.03720.65
5.5.270.0070.03720.88
5.5.260.0130.08320.85
5.5.250.0170.07020.60
5.5.240.0030.08020.14
5.4.450.0630.05319.61
5.4.440.0730.05719.23
5.4.430.0170.05019.46
5.4.420.0000.06019.53
5.4.410.0130.04719.25
5.4.400.0100.04719.39
5.4.390.0130.04719.12
5.4.380.0070.05319.02
5.4.370.0130.04719.17
5.4.360.0100.04719.15
5.4.350.0070.05318.98
5.4.340.0070.05019.13
5.4.320.0070.05719.02
5.4.310.0100.04719.12
5.4.300.0030.05719.25
5.4.290.0100.04719.11
5.4.280.0030.05718.96
5.4.270.0130.04319.15
5.4.260.0070.05319.01
5.4.250.0100.07019.21
5.4.240.0030.05719.08
5.4.230.0030.05319.07
5.4.220.0230.04719.20
5.4.210.0100.05019.20
5.4.200.0070.05316.86
5.4.190.0070.05318.96
5.4.180.0000.05718.94
5.4.170.0130.04719.14
5.4.160.0100.04719.10
5.4.150.0130.04719.09
5.4.140.0000.05716.49
5.4.130.0130.04316.59
5.4.120.0170.06716.25
5.4.110.0070.06716.55
5.4.100.0130.05316.46
5.4.90.0030.05316.61
5.4.80.0100.04316.61
5.4.70.0100.04716.29
5.4.60.0100.04716.55
5.4.50.0030.05716.28
5.4.40.0030.06716.43
5.4.30.0000.05316.22
5.4.20.0030.05316.43
5.4.10.0100.04716.68
5.4.00.0070.04716.03
5.3.290.0130.04714.56
5.3.280.0030.05314.66
5.3.270.0070.05314.61
5.3.260.0130.04714.53
5.3.250.0030.05314.58
5.3.240.0030.05314.45
5.3.230.0000.05714.50
5.3.220.0070.05314.63
5.3.210.0000.05714.54
5.3.200.0030.05314.47
5.3.190.0070.05014.61
5.3.180.0070.05014.48
5.3.170.0030.05314.56
5.3.160.0000.05714.68
5.3.150.0100.04714.58
5.3.140.0070.05014.62
5.3.130.0070.05314.67
5.3.120.0100.06314.44
5.3.110.0100.05014.70
5.3.100.0030.05314.19
5.3.90.0170.04013.92
5.3.80.0100.05314.02
5.3.70.0100.04714.01
5.3.60.0130.04314.16
5.3.50.0100.05013.89
5.3.40.0000.07014.09
5.3.30.0100.04713.89
5.3.20.0030.05313.61
5.3.10.0130.04313.50
5.3.00.0100.04713.59
5.2.170.0100.03711.05
5.2.160.0030.04011.11
5.2.150.0070.04011.12
5.2.140.0030.04311.05
5.2.130.0070.04011.24
5.2.120.0070.03711.00
5.2.110.0000.04711.00
5.2.100.0100.03310.95
5.2.90.0030.04311.04
5.2.80.0030.04310.98
5.2.70.0100.05311.09
5.2.60.0000.05710.98
5.2.50.0000.04711.12
5.2.40.0030.04011.06
5.2.30.0100.04310.91
5.2.20.0070.04311.06
5.2.10.0070.03710.77
5.2.00.0030.04010.82
5.1.60.0000.0379.87
5.1.50.0030.0379.90
5.1.40.0030.0379.89
5.1.30.0030.03710.24
5.1.20.0000.04010.29
5.1.10.0070.0339.99
5.1.00.0030.0379.95
5.0.50.0030.0278.43
5.0.40.0000.0308.30
5.0.30.0070.0508.15
5.0.20.0070.0308.34
5.0.10.0100.0308.16
5.0.00.0030.0408.29
4.4.90.0000.0235.91
4.4.80.0030.0205.77
4.4.70.0070.0175.91
4.4.60.0000.0235.81
4.4.50.0070.0175.75
4.4.40.0000.0375.75
4.4.30.0000.0235.76
4.4.20.0070.0175.91
4.4.10.0000.0235.81
4.4.00.0030.0335.87
4.3.110.0030.0205.71
4.3.100.0070.0175.70
4.3.90.0000.0235.79
4.3.80.0070.0305.75
4.3.70.0030.0205.75
4.3.60.0030.0205.67
4.3.50.0000.0235.76
4.3.40.0000.0335.61
4.3.30.0000.0234.50
4.3.20.0000.0234.54
4.3.10.0000.0234.35
4.3.00.0100.0206.98

preferences:
38.82 ms | 401 KiB | 5 Q