3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array(1,2,3,4,5,6,7,8); $array2 = array('a','b','c','d','e','f','g'); array_splice($array1, 1,1,$array2); print_r ($array1);

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.0070.00716.63
8.3.50.0060.00922.05
8.3.40.0140.00318.68
8.3.30.0040.01118.97
8.3.20.0000.00720.16
8.3.10.0000.00823.56
8.3.00.0090.00019.02
8.2.180.0140.00718.43
8.2.170.0040.01122.96
8.2.160.0100.00320.18
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00322.25
8.2.110.0030.00720.39
8.2.100.0070.00417.84
8.2.90.0040.00419.27
8.2.80.0050.00317.97
8.2.70.0030.00617.63
8.2.60.0080.00017.93
8.2.50.0030.00618.07
8.2.40.0000.00818.03
8.2.30.0040.00417.98
8.2.20.0070.00017.59
8.2.10.0040.00417.96
8.2.00.0030.00617.61
8.1.280.0140.00325.92
8.1.270.0040.00423.78
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.79
8.1.230.0000.01224.05
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.01217.23
8.1.190.0060.00317.53
8.1.180.0030.00518.10
8.1.170.0080.00018.50
8.1.160.0000.00721.86
8.1.150.0000.00718.63
8.1.140.0070.00017.37
8.1.130.0040.00417.87
8.1.120.0070.00017.31
8.1.110.0030.00617.36
8.1.100.0030.00617.30
8.1.90.0040.00417.41
8.1.80.0030.00317.35
8.1.70.0070.00017.35
8.1.60.0030.00717.52
8.1.50.0030.00617.46
8.1.40.0020.00517.41
8.1.30.0030.00517.57
8.1.20.0000.00717.46
8.1.10.0040.00417.50
8.1.00.0000.00817.32
8.0.300.0000.00718.77
8.0.290.0030.00517.02
8.0.280.0030.00318.28
8.0.270.0050.00217.19
8.0.260.0000.00617.18
8.0.250.0030.00316.88
8.0.240.0040.00416.88
8.0.230.0060.00316.88
8.0.220.0060.00016.86
8.0.210.0000.00716.82
8.0.200.0030.00316.89
8.0.190.0060.00316.88
8.0.180.0040.00416.77
8.0.170.0080.00016.83
8.0.160.0000.00816.85
8.0.150.0070.00016.64
8.0.140.0000.00716.80
8.0.130.0030.00313.20
8.0.120.0040.00416.74
8.0.110.0040.00416.86
8.0.100.0050.00316.76
8.0.90.0050.00216.61
8.0.80.0180.00316.81
8.0.70.0040.00316.88
8.0.60.0080.00016.81
8.0.50.0030.00316.88
8.0.30.0080.01217.08
8.0.20.0060.01217.40
8.0.10.0040.00417.00
8.0.00.0070.01116.63
7.4.330.0050.00015.00
7.4.320.0030.00316.35
7.4.300.0060.00016.50
7.4.290.0030.00316.43
7.4.280.0000.00816.33
7.4.270.0030.00316.50
7.4.260.0030.00316.43
7.4.250.0000.00816.46
7.4.240.0040.00416.50
7.4.230.0000.00716.33
7.4.220.0060.00916.63
7.4.210.0080.00716.49
7.4.200.0070.00016.63
7.4.190.0070.00016.30
7.4.160.0100.00616.46
7.4.150.0110.00617.40
7.4.140.0090.00917.86
7.4.130.0080.01016.40
7.4.120.0100.00816.32
7.4.110.0070.01116.23
7.4.100.0110.00716.38
7.4.90.0140.00416.36
7.4.80.0090.01519.39
7.4.70.0090.00816.50
7.4.60.0120.00516.41
7.4.50.0000.00816.25
7.4.40.0110.00722.77
7.4.30.0120.01216.41
7.4.00.0060.00914.86
7.3.330.0050.00012.89
7.3.320.0030.00312.92
7.3.310.0030.00316.13
7.3.300.0040.00416.03
7.3.290.0090.00516.16
7.3.280.0100.00816.12
7.3.270.0100.00717.40
7.3.260.0080.00816.50
7.3.250.0150.00716.12
7.3.240.0140.00316.35
7.3.230.0100.00716.39
7.3.210.0070.01016.30
7.3.200.0080.01419.39
7.3.190.0100.00716.03
7.3.180.0060.00916.18
7.3.170.0110.01116.38
7.3.160.0100.00716.25
7.3.120.0030.01314.82
7.3.10.0040.00816.32
7.3.00.0110.00416.24
7.2.330.0090.01216.21
7.2.320.0060.01116.54
7.2.310.0080.00816.51
7.2.300.0080.00816.52
7.2.290.0080.00816.52
7.2.130.0120.00416.46
7.2.120.0100.00716.39
7.2.110.0070.00416.39
7.2.100.0160.00316.47
7.2.90.0000.01116.16
7.2.80.0060.00616.61
7.2.70.0020.00716.39
7.2.60.0130.00616.55
7.2.50.0000.00916.36
7.2.40.0000.01316.59
7.2.30.0060.01316.45
7.2.20.0130.00716.38
7.2.10.0170.00816.43
7.2.00.0050.01117.81
7.1.250.0030.00615.37
7.1.200.0060.00915.84
7.1.100.0040.00718.19
7.1.70.0000.00816.73
7.1.60.0100.01619.46
7.1.50.0060.00916.93
7.1.00.0000.08022.31
7.0.200.0260.00614.76
7.0.140.0070.07022.04
7.0.60.0070.08020.04
7.0.50.0030.04017.87
7.0.40.0030.04320.09
7.0.30.0270.03720.23
7.0.20.0330.05720.16
7.0.10.0270.08320.19
7.0.00.0100.06720.20
5.6.280.0030.07321.08
5.6.210.0170.07720.71
5.6.200.0130.07718.15
5.6.190.0130.07020.64
5.6.180.0300.07720.55
5.6.170.0200.04320.55
5.6.160.0000.08320.59
5.6.150.0070.08018.23
5.6.140.0070.08318.21
5.6.130.0100.03718.16
5.6.120.0170.08021.00
5.6.110.0170.07021.13
5.6.100.0200.07320.86
5.6.90.0170.07321.10
5.6.80.0070.08020.48
5.6.70.4400.04320.38
5.5.350.0130.07320.43
5.5.340.0030.05017.98
5.5.330.0070.04020.13
5.5.320.0300.04720.28
5.5.310.0230.08320.25
5.5.300.0030.07018.06
5.5.290.0100.04017.95
5.5.280.0170.07320.74
5.5.270.0000.04320.86
5.5.260.0030.04020.97
5.5.250.0130.08020.79
5.5.240.0270.07020.18
5.4.450.0970.07019.18
5.4.440.0800.04019.55
5.4.430.0430.06019.46
5.4.420.0770.05719.15
5.4.410.0870.04719.46
5.4.400.0270.07019.04
5.4.390.0070.05719.14
5.4.380.0270.06018.79
5.4.370.0170.06018.89
5.4.360.0400.04318.50
5.4.350.0300.06318.84
5.4.340.0430.05018.46
5.4.320.0060.03612.48
5.4.310.0030.04212.48
5.4.300.0060.03612.48
5.4.290.0060.04012.46
5.4.280.0090.04712.36
5.4.270.0100.04912.36
5.4.260.0070.05212.36
5.4.250.0080.04112.36
5.4.240.0130.03412.36
5.4.230.0030.04212.35
5.4.220.0030.04212.35
5.4.210.0080.03512.36
5.4.200.0080.04612.35
5.4.190.0060.03812.35
5.4.180.0080.03612.35
5.4.170.0060.03812.36
5.4.160.0050.04012.36
5.4.150.0090.03412.35
5.4.140.0110.03312.04
5.4.130.0060.03712.02
5.4.120.0100.03511.98
5.4.110.0090.03611.98
5.4.100.0090.03511.98
5.4.90.0080.03911.98
5.4.80.0060.04111.98
5.4.70.0050.03811.97
5.4.60.0030.04011.97
5.4.50.0080.03511.97
5.4.40.0140.02911.96
5.4.30.0050.03911.96
5.4.20.0080.03411.96
5.4.10.0060.03711.96
5.4.00.0090.04311.45
5.3.290.0080.04312.80
5.3.280.0100.05712.71
5.3.270.0080.06012.72
5.3.260.0070.06612.72
5.3.250.0130.06612.71
5.3.240.0090.03812.72
5.3.230.0130.05512.71
5.3.220.0100.04812.68
5.3.210.0090.05712.68
5.3.200.0090.04512.68
5.3.190.0090.05512.68
5.3.180.0120.04312.67
5.3.170.0070.04712.67
5.3.160.0100.05612.67
5.3.150.0140.04712.68
5.3.140.0130.05912.66
5.3.130.0100.05112.66
5.3.120.0150.05312.66
5.3.110.0080.05612.66
5.3.100.0080.04112.12
5.3.90.0090.04212.09
5.3.80.0140.04012.08
5.3.70.0110.03712.08
5.3.60.0070.03912.06
5.3.50.0100.03912.01
5.3.40.0080.04112.01
5.3.30.0100.05511.97
5.3.20.0130.05211.75
5.3.10.0100.04311.72
5.3.00.0080.04711.70
5.2.170.0050.0339.21
5.2.160.0030.0349.20
5.2.150.0080.0389.21
5.2.140.0110.0389.20
5.2.130.0040.0439.16
5.2.120.0070.0349.16
5.2.110.0050.0309.17
5.2.100.0130.0469.17
5.2.90.0070.0409.16
5.2.80.0100.0409.16
5.2.70.0080.0389.16
5.2.60.0020.0349.12
5.2.50.0080.0319.08
5.2.40.0150.0529.06
5.2.30.0080.0449.04
5.2.20.0050.0499.03
5.2.10.0080.0378.94
5.2.00.0100.0388.79
5.1.60.0060.0358.08
5.1.50.0070.0388.07
5.1.40.0100.0338.05
5.1.30.0060.0308.41
5.1.20.0080.0308.43
5.1.10.0070.0318.15
5.1.00.0070.0358.16
5.0.50.0060.0216.63
5.0.40.0050.0216.49
5.0.30.0080.0356.30
5.0.20.0050.0266.27
5.0.10.0040.0306.25
5.0.00.0030.0346.24
4.4.90.0050.0184.78
4.4.80.0030.0164.75
4.4.70.0030.0194.76
4.4.60.0020.0244.75
4.4.50.0050.0214.77
4.4.40.0040.0294.71
4.4.30.0050.0204.76
4.4.20.0020.0324.84
4.4.10.0050.0224.84
4.4.00.0030.0274.76
4.3.110.0040.0154.67
4.3.100.0030.0164.66
4.3.90.0040.0154.63
4.3.80.0030.0244.59
4.3.70.0040.0144.63
4.3.60.0040.0134.62
4.3.50.0030.0154.62
4.3.40.0060.0214.54
4.3.30.0030.0163.29
4.3.20.0040.0193.27
4.3.10.0020.0173.23
4.3.00.0230.01310.31

preferences:
38.64 ms | 401 KiB | 5 Q