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,0,$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.75
8.3.50.0100.00721.88
8.3.40.0140.00318.54
8.3.30.0090.00618.83
8.3.20.0080.00020.30
8.3.10.0040.00423.39
8.3.00.0000.00819.13
8.2.180.0040.01118.41
8.2.170.0110.00422.96
8.2.160.0130.00020.21
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0030.00526.16
8.2.120.0000.00722.08
8.2.110.0060.00320.46
8.2.100.0080.00817.16
8.2.90.0060.00319.14
8.2.80.0000.00817.97
8.2.70.0070.00317.25
8.2.60.0000.00817.91
8.2.50.0080.00018.10
8.2.40.0060.00318.16
8.2.30.0040.00418.04
8.2.20.0090.00017.66
8.2.10.0040.00418.05
8.2.00.0050.00217.61
8.1.280.0070.01025.92
8.1.270.0030.00623.97
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0080.00022.81
8.1.230.0040.00817.54
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.13
8.1.190.0030.00617.11
8.1.180.0000.00918.10
8.1.170.0040.00418.50
8.1.160.0040.00421.93
8.1.150.0050.00218.56
8.1.140.0040.00417.38
8.1.130.0040.00417.72
8.1.120.0000.00717.29
8.1.110.0000.00817.30
8.1.100.0080.00017.31
8.1.90.0040.00417.39
8.1.80.0030.00317.40
8.1.70.0030.00617.32
8.1.60.0040.00417.38
8.1.50.0040.00417.33
8.1.40.0000.00817.35
8.1.30.0050.00317.55
8.1.20.0080.00017.45
8.1.10.0070.00017.45
8.1.00.0060.00317.45
8.0.300.0090.00018.77
8.0.290.0100.00016.75
8.0.280.0030.00318.38
8.0.270.0030.00317.10
8.0.260.0070.00017.03
8.0.250.0000.00716.73
8.0.240.0080.00016.77
8.0.230.0030.00316.75
8.0.220.0070.00016.85
8.0.210.0000.00716.81
8.0.200.0000.00716.76
8.0.190.0000.00716.79
8.0.180.0000.00716.77
8.0.170.0030.00616.73
8.0.160.0000.00716.84
8.0.150.0050.00316.64
8.0.140.0040.00416.63
8.0.130.0060.00013.16
8.0.120.0040.00416.77
8.0.110.0030.00516.77
8.0.100.0040.00416.91
8.0.90.0000.00816.80
8.0.80.0150.00016.76
8.0.70.0070.00016.82
8.0.60.0070.00016.83
8.0.50.0030.00516.75
8.0.30.0110.01017.03
8.0.20.0090.01117.40
8.0.10.0040.00416.98
8.0.00.0070.00916.56
7.4.330.0000.00515.00
7.4.320.0030.00316.42
7.4.300.0060.00016.34
7.4.290.0020.00516.57
7.4.280.0080.00016.56
7.4.270.0000.00716.32
7.4.260.0030.00316.41
7.4.250.0000.00716.39
7.4.240.0040.00416.42
7.4.230.0030.00316.62
7.4.220.0100.01016.41
7.4.210.0060.01116.59
7.4.200.0000.00716.18
7.4.190.0070.00016.41
7.4.160.0130.00316.59
7.4.150.0030.01317.40
7.4.140.0050.01217.86
7.4.130.0050.01116.45
7.4.120.0120.00716.48
7.4.110.0110.01116.18
7.4.100.0100.00716.52
7.4.90.0140.00416.37
7.4.80.0090.00919.39
7.4.70.0120.00916.31
7.4.60.0030.01216.35
7.4.50.0000.00816.37
7.4.40.0070.01122.77
7.4.30.0040.01816.21
7.4.00.0070.01114.80
7.3.330.0000.00512.89
7.3.320.0040.00313.05
7.3.310.0070.00016.14
7.3.300.0030.00316.14
7.3.290.0090.00616.17
7.3.280.0050.01116.15
7.3.270.0070.01117.40
7.3.260.0070.01316.23
7.3.250.0080.00916.39
7.3.240.0060.01116.13
7.3.230.0120.00416.39
7.3.210.0120.00616.12
7.3.200.0090.01019.39
7.3.190.0060.01616.35
7.3.180.0060.00916.40
7.3.170.0120.00416.39
7.3.160.0130.01016.24
7.3.120.0060.00914.68
7.2.330.0070.01116.46
7.2.320.0140.01016.13
7.2.310.0100.01016.17
7.2.300.0070.01016.36
7.2.290.0120.00416.35
7.2.60.0030.01016.68
7.2.00.0030.00919.11
7.1.200.0040.00715.65
7.1.100.0040.00717.63
7.1.70.0000.01016.97
7.1.60.0130.01319.46
7.1.50.0040.00816.47
7.1.00.0000.08022.42
7.0.200.0160.00414.89
7.0.140.0070.07322.11
7.0.60.0100.07719.86
7.0.50.0100.04717.86
7.0.40.0100.04020.13
7.0.30.0300.07020.10
7.0.20.0230.04720.20
7.0.10.0100.05020.23
7.0.00.0170.07720.14
5.6.280.0030.07320.90
5.6.210.0070.09020.50
5.6.200.0100.08018.22
5.6.190.0000.09720.57
5.6.180.0330.07020.41
5.6.170.0300.05020.50
5.6.160.0070.08720.47
5.6.150.0100.07718.15
5.6.140.0070.08018.26
5.6.130.0100.07718.18
5.6.120.0100.06721.04
5.6.110.0070.03721.00
5.6.100.0170.07721.11
5.6.90.0000.04320.87
5.6.80.0070.08020.53
5.6.70.4170.03720.36
5.5.350.0170.07320.32
5.5.340.0070.07017.95
5.5.330.0130.07020.57
5.5.320.0230.04020.19
5.5.310.0330.07020.33
5.5.300.0100.08317.93
5.5.290.0030.08318.12
5.5.280.0070.07720.86
5.5.270.0030.04320.79
5.5.260.0070.08320.86
5.5.250.0030.07320.45
5.5.240.0400.05020.27
5.4.450.0830.05719.58
5.4.440.0700.06319.31
5.4.430.0700.07319.47
5.4.420.0870.07019.47
5.4.410.0630.06319.39
5.4.400.0530.05719.14
5.4.390.0670.05719.12
5.4.380.0430.04318.68
5.4.370.0300.05018.52
5.4.360.0170.05718.71
5.4.350.0330.05318.69
5.4.340.0400.05318.55
5.4.320.0080.03512.48
5.4.310.0090.03612.48
5.4.300.0060.03612.48
5.4.290.0060.03912.46
5.4.280.0110.03212.36
5.4.270.0060.05012.36
5.4.260.0080.03712.36
5.4.250.0070.03712.36
5.4.240.0090.04512.36
5.4.230.0080.04112.35
5.4.220.0050.03712.36
5.4.210.0100.04412.36
5.4.200.0060.04012.36
5.4.190.0070.04612.35
5.4.180.0110.03312.35
5.4.170.0110.04812.36
5.4.160.0140.05212.36
5.4.150.0090.04212.35
5.4.140.0090.03512.04
5.4.130.0060.03612.02
5.4.120.0080.03311.98
5.4.110.0060.03911.98
5.4.100.0030.04011.98
5.4.90.0100.04511.98
5.4.80.0130.04711.98
5.4.70.0070.03911.98
5.4.60.0080.03711.98
5.4.50.0090.05111.98
5.4.40.0040.04011.96
5.4.30.0080.05711.96
5.4.20.0080.05411.96
5.4.10.0060.05311.96
5.4.00.0050.03911.45
5.3.290.0070.03912.80
5.3.280.0100.03912.71
5.3.270.0070.04212.72
5.3.260.0050.04312.72
5.3.250.0080.03912.72
5.3.240.0070.03912.72
5.3.230.0090.03712.71
5.3.220.0040.04112.68
5.3.210.0130.04412.68
5.3.200.0110.05112.68
5.3.190.0090.05012.68
5.3.180.0100.05612.67
5.3.170.0070.04112.67
5.3.160.0100.05312.67
5.3.150.0090.03812.68
5.3.140.0060.05612.66
5.3.130.0140.07412.66
5.3.120.0160.05212.65
5.3.110.0160.04912.66
5.3.100.0200.06112.12
5.3.90.0130.05112.09
5.3.80.0090.04812.08
5.3.70.0170.05412.08
5.3.60.0100.03412.07
5.3.50.0120.04312.02
5.3.40.0120.05012.02
5.3.30.0080.05111.97
5.3.20.0040.05711.75
5.3.10.0050.04611.72
5.3.00.0100.05011.70
5.2.170.0040.0359.21
5.2.160.0090.0279.20
5.2.150.0040.0329.21
5.2.140.0080.0329.20
5.2.130.0060.0309.16
5.2.120.0050.0299.16
5.2.110.0060.0299.17
5.2.100.0080.0359.16
5.2.90.0090.0369.17
5.2.80.0120.0489.16
5.2.70.0050.0409.16
5.2.60.0050.0379.11
5.2.50.0040.0329.08
5.2.40.0060.0359.06
5.2.30.0120.0319.04
5.2.20.0050.0299.02
5.2.10.0060.0388.93
5.2.00.0060.0298.79
5.1.60.0040.0388.08
5.1.50.0070.0338.08
5.1.40.0070.0318.05
5.1.30.0070.0278.40
5.1.20.0080.0388.43
5.1.10.0070.0278.15
5.1.00.0090.0228.15
5.0.50.0050.0206.63
5.0.40.0060.0186.49
5.0.30.0020.0346.30
5.0.20.0030.0216.27
5.0.10.0040.0206.25
5.0.00.0060.0296.25
4.4.90.0030.0164.78
4.4.80.0040.0154.75
4.4.70.0020.0174.75
4.4.60.0030.0164.75
4.4.50.0060.0204.77
4.4.40.0030.0284.71
4.4.30.0020.0174.76
4.4.20.0080.0164.84
4.4.10.0040.0164.85
4.4.00.0060.0234.75
4.3.110.0050.0184.67
4.3.100.0020.0174.66
4.3.90.0060.0184.63
4.3.80.0070.0274.58
4.3.70.0030.0154.63
4.3.60.0060.0194.63
4.3.50.0040.0194.63
4.3.40.0030.0344.54
4.3.30.0030.0223.29
4.3.20.0030.0263.27
4.3.10.0020.0233.23
4.3.00.0170.03310.31

preferences:
45.88 ms | 401 KiB | 5 Q