3v4l.org

run code in 300+ PHP versions simultaneously
<?php $beginning = array("foooo"); $end = array("fooo", "foo", "fo"); $result = array_merge((array)$beginning, (array)$end); 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.40.0060.01218.43
8.3.30.0070.00720.27
8.3.20.0080.00018.43
8.3.10.0030.00521.04
8.3.00.0000.00819.53
8.2.170.0110.00422.96
8.2.160.0030.01020.53
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.04
8.2.110.0060.00319.22
8.2.100.0060.00617.72
8.2.90.0040.00418.97
8.2.80.0040.00419.39
8.2.70.0080.00017.38
8.2.60.0050.00217.90
8.2.50.0040.00418.07
8.2.40.0040.00419.66
8.2.30.0000.00719.34
8.2.20.0040.00417.63
8.2.10.0040.00417.61
8.2.00.0040.00417.60
8.1.270.0040.00423.99
8.1.260.0100.01026.35
8.1.250.0000.00828.09
8.1.240.0060.00620.51
8.1.230.0000.01120.91
8.1.220.0040.00418.77
8.1.210.0000.00818.91
8.1.200.0000.00917.10
8.1.190.0050.00317.53
8.1.180.0030.00518.10
8.1.170.0060.00318.57
8.1.160.0090.00018.82
8.1.150.0070.00018.57
8.1.140.0000.00817.37
8.1.130.0030.00317.86
8.1.120.0000.00717.39
8.1.110.0000.00717.34
8.1.100.0030.00317.33
8.1.90.0040.00417.41
8.1.80.0000.00717.38
8.1.70.0000.00717.35
8.1.60.0030.00617.64
8.1.50.0000.00817.53
8.1.40.0000.00817.40
8.1.30.0000.00717.66
8.1.20.0050.00317.50
8.1.10.0060.00317.41
8.1.00.0050.00317.34
8.0.300.0080.00020.02
8.0.290.0000.00717.04
8.0.280.0030.00318.24
8.0.270.0000.00717.17
8.0.260.0090.00016.79
8.0.250.0000.00716.87
8.0.240.0080.00016.77
8.0.230.0030.00316.93
8.0.220.0080.00016.79
8.0.210.0030.00416.72
8.0.200.0000.00616.83
8.0.190.0000.00716.85
8.0.180.0040.00416.77
8.0.170.0000.00816.82
8.0.160.0080.00016.86
8.0.150.0080.00016.76
8.0.140.0050.00316.70
8.0.130.0040.00413.20
8.0.120.0050.00316.68
8.0.110.0040.00416.76
8.0.100.0050.00216.89
8.0.90.0050.00316.93
8.0.80.0060.00916.81
8.0.70.0000.00816.82
8.0.60.0070.00016.84
8.0.50.0080.00016.84
8.0.30.0100.00816.95
8.0.20.0080.01017.40
8.0.10.0050.00216.94
8.0.00.0110.00616.62
7.4.330.0060.00016.71
7.4.320.0060.00016.50
7.4.300.0060.00316.55
7.4.290.0000.00716.59
7.4.280.0040.00416.53
7.4.270.0030.00316.54
7.4.260.0060.00013.21
7.4.250.0030.00516.56
7.4.240.0070.00016.51
7.4.230.0040.00416.33
7.4.220.0060.00916.48
7.4.210.0090.00716.55
7.4.200.0000.00816.30
7.4.190.0070.00016.75
7.4.160.0060.01116.32
7.4.150.0100.00717.40
7.4.140.0070.01017.86
7.4.130.0100.00816.53
7.4.120.0070.01016.53
7.4.110.0030.01616.64
7.4.100.0030.01316.45
7.4.90.0120.00916.51
7.4.80.0090.00919.39
7.4.70.0060.01016.29
7.4.60.0100.00616.41
7.4.50.0000.00816.46
7.4.40.0070.01022.77
7.4.30.0160.00616.45
7.4.00.0050.00514.98
7.3.330.0000.00512.92
7.3.320.0000.00513.13
7.3.310.0000.00716.27
7.3.300.0060.00016.05
7.3.290.0110.00416.24
7.3.280.0040.01316.21
7.3.270.0030.01317.40
7.3.260.0190.00618.24
7.3.250.0120.00516.24
7.3.240.0150.00716.14
7.3.230.0060.01516.41
7.3.210.0070.01016.24
7.3.200.0120.00919.39
7.3.190.0030.01516.28
7.3.180.0110.00516.41
7.3.170.0060.01016.48
7.3.160.0090.00616.23
7.3.120.0040.01114.96
7.2.330.0140.01016.45
7.2.320.0090.00916.61
7.2.310.0110.00816.58
7.2.300.0120.00616.28
7.2.290.0060.01016.48
7.2.00.0000.01119.42
7.1.100.0000.00818.23
7.1.70.0030.00517.14
7.1.60.0110.01119.24
7.1.50.0150.00716.86
7.1.00.0030.04722.57
7.0.200.0030.00716.83
7.0.140.0000.07722.18
7.0.100.0070.05719.93
7.0.90.0030.05319.85
7.0.80.0170.05020.13
7.0.70.0100.04319.80
7.0.60.0170.06720.08
7.0.50.0130.08720.28
7.0.40.0130.08320.10
7.0.30.0100.04720.08
7.0.20.0030.08320.07
7.0.10.0170.07020.18
7.0.00.0100.06720.07
5.6.280.0000.07320.80
5.6.250.0030.04320.71
5.6.240.0070.07720.72
5.6.230.0170.08020.56
5.6.220.0070.04720.67
5.6.210.0130.08020.61
5.6.200.0130.04021.03
5.6.190.0170.07020.95
5.6.180.0030.08020.98
5.6.170.0070.07721.04
5.6.160.0200.08021.07
5.6.150.0200.06321.03
5.6.140.0030.08721.04
5.6.130.0100.05021.12
5.6.120.0130.08021.08
5.6.110.0070.08721.04
5.6.100.0100.04321.07
5.6.90.0100.07720.94
5.6.80.0100.07720.39
5.6.70.0030.04320.44
5.6.60.0030.07720.42
5.6.50.0100.07720.41
5.6.40.0000.07320.36
5.6.30.0030.08720.37
5.6.20.0100.08020.30
5.6.10.0070.04320.35
5.6.00.0100.04320.41
5.5.380.0070.04720.39
5.5.370.0070.08020.41
5.5.360.0100.03720.33
5.5.350.0030.05720.44
5.5.340.0100.04720.86
5.5.330.0070.08320.63
5.5.320.0130.07320.87
5.5.310.0030.05320.91
5.5.300.0070.04020.59
5.5.290.0000.05720.91
5.5.280.0000.07020.72
5.5.270.0000.08020.71
5.5.260.0070.05020.78
5.5.250.0170.08320.70
5.5.240.0100.06720.11
5.5.230.0100.07320.24
5.5.220.0030.06320.28
5.5.210.0130.07320.25
5.5.200.0130.06720.13
5.5.190.0100.08020.11
5.5.180.0170.05719.99
5.5.160.0130.07720.16
5.5.150.0100.08020.26
5.5.140.0130.07720.26
5.5.130.0130.07020.23
5.5.120.0000.08020.21
5.5.110.0070.08020.19
5.5.100.0000.05320.16
5.5.90.0130.07020.14
5.5.80.0100.07720.00
5.5.70.0100.06320.05
5.5.60.0070.04719.99
5.5.50.0200.06720.13
5.5.40.0030.04720.10
5.5.30.0200.06019.98
5.5.20.0030.07319.98
5.5.10.0100.06020.09
5.5.00.0130.04019.93
5.4.450.0100.08019.51
5.4.440.0100.04019.35
5.4.430.0100.07319.35
5.4.420.0030.05019.20
5.4.410.0200.06319.23
5.4.400.0030.06319.23
5.4.390.0130.03319.16
5.4.380.0030.08319.04
5.4.370.0100.07319.05
5.4.360.0070.07319.16
5.4.350.0130.06719.23
5.4.340.0000.06318.94
5.4.320.0070.07718.90
5.4.310.0100.07319.21
5.4.300.0030.07719.12
5.4.290.0070.07018.94
5.4.280.0030.08018.95
5.4.270.0070.07319.12
5.4.260.0070.07319.09
5.4.250.0130.07319.15
5.4.240.0030.07019.02
5.4.230.0130.06719.03
5.4.220.0030.08019.02
5.4.210.0100.06719.14
5.4.200.0030.07719.04
5.4.190.0070.07719.11
5.4.180.0070.04318.86
5.4.170.0030.08018.90
5.4.160.0070.07718.82
5.4.150.0100.07319.09
5.4.140.0030.07716.41
5.4.130.0030.07716.42
5.4.120.0070.05016.45
5.4.110.0070.05716.40
5.4.100.0070.07016.47
5.4.90.0070.08016.39
5.4.80.0030.07316.41
5.4.70.0100.07016.25
5.4.60.0070.07316.26
5.4.50.0030.07316.27
5.4.40.0100.07016.37
5.4.30.0100.07316.46
5.4.20.0030.05016.52
5.4.10.0130.04016.31
5.4.00.0000.03715.87
5.3.290.0030.07715.66
5.3.280.0100.06315.66
5.3.270.0170.06715.66
5.3.260.0070.08715.66
5.3.250.0070.05015.66
5.3.240.0000.06315.66
5.3.230.0100.08015.66
5.3.220.0130.06015.66
5.3.210.0130.06315.66
5.3.200.0070.07015.66
5.3.190.0070.04315.66
5.3.180.0030.04715.66
5.3.170.0030.06315.66
5.3.160.0100.07015.66
5.3.150.0100.06715.66
5.3.140.0200.03015.66
5.3.130.0130.07315.66
5.3.120.0030.06315.66
5.3.110.0030.07015.66
5.3.100.0030.04315.66
5.3.90.0130.05715.66
5.3.80.0070.03315.66
5.3.70.0100.07015.66
5.3.60.0070.06315.66
5.3.50.0130.06015.66
5.3.40.0070.04315.66
5.3.30.0100.07015.66
5.3.20.0070.07015.66
5.3.10.0070.05715.66
5.3.00.0100.06015.66
5.2.170.0030.07015.66
5.2.160.0100.06015.66
5.2.150.0000.05715.66
5.2.140.0030.06315.66
5.2.130.0000.06315.66
5.2.120.0000.03715.66
5.2.110.0100.04715.66
5.2.100.0100.05715.66
5.2.90.0000.03715.66
5.2.80.0070.05015.66
5.2.70.0030.04715.66
5.2.60.0000.05715.66
5.2.50.0070.06015.66
5.2.40.0000.06015.66
5.2.30.0030.06315.66
5.2.20.0070.05315.66
5.2.10.0070.03015.66
5.2.00.0030.04315.66
5.1.60.0100.04715.66
5.1.50.0030.05315.66
5.1.40.0030.05015.66
5.1.30.0070.04715.66
5.1.20.0030.05015.66
5.1.10.0070.05715.66
5.1.00.0030.05715.66
5.0.50.0000.04715.66
5.0.40.0070.03715.66
5.0.30.0030.03715.66
5.0.20.0100.03715.66
5.0.10.0030.02015.66
5.0.00.0100.03015.66
4.4.90.0030.01715.66
4.4.80.0000.03715.66
4.4.70.0070.02015.66
4.4.60.0070.03015.66
4.4.50.0000.02715.66
4.4.40.0000.04715.66
4.4.30.0000.02015.66
4.4.20.0000.02015.66
4.4.10.0030.02015.66
4.4.00.0030.05315.66
4.3.110.0070.02015.66
4.3.100.0000.03715.66
4.3.90.0130.02315.66
4.3.80.0000.04315.66
4.3.70.0000.02715.66
4.3.60.0030.01715.66
4.3.50.0030.03715.66
4.3.40.0030.05015.66
4.3.30.0030.03315.66
4.3.20.0000.02715.66
4.3.10.0000.02015.66
4.3.00.0030.01715.66

preferences:
67.9 ms | 400 KiB | 5 Q