3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(10, 11, 13); print_r(count($arr)); array_splice($arr, 2, 1); print_r(count($arr));

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.0030.01018.30
8.3.50.0070.00922.05
8.3.40.0000.01418.59
8.3.30.0110.00418.78
8.3.20.0030.00320.12
8.3.10.0040.00421.59
8.3.00.0090.00017.65
8.2.180.0180.00316.63
8.2.170.0140.00322.96
8.2.160.0030.01220.35
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0080.00020.81
8.2.110.0030.00621.00
8.2.100.0040.00817.57
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0000.00817.80
8.2.50.0050.00318.07
8.2.40.0030.00619.75
8.2.30.0070.00018.05
8.2.20.0030.00517.72
8.2.10.0050.00217.91
8.2.00.0000.00717.66
8.1.280.0070.00725.92
8.1.270.0100.00023.99
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0040.00422.47
8.1.230.0110.00020.75
8.1.220.0030.00518.77
8.1.210.0040.00419.03
8.1.200.0030.00917.36
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0080.00018.68
8.1.160.0000.00722.04
8.1.150.0040.00418.86
8.1.140.0000.00917.34
8.1.130.0000.00717.77
8.1.120.0040.00417.46
8.1.110.0000.00817.41
8.1.100.0040.00417.50
8.1.90.0060.00317.48
8.1.80.0040.00417.33
8.1.70.0030.00317.43
8.1.60.0000.01117.48
8.1.50.0040.00417.50
8.1.40.0000.00717.50
8.1.30.0000.00817.52
8.1.20.0060.00317.70
8.1.10.0080.00017.38
8.1.00.0070.00017.46
8.0.300.0040.00420.09
8.0.290.0000.00816.63
8.0.280.0030.00318.29
8.0.270.0070.00017.06
8.0.260.0040.00417.18
8.0.250.0000.00716.77
8.0.240.0030.00316.84
8.0.230.0000.00716.92
8.0.220.0000.00816.84
8.0.210.0090.00016.84
8.0.200.0060.00016.87
8.0.190.0060.00316.80
8.0.180.0040.00416.72
8.0.170.0000.00816.81
8.0.160.0070.00016.86
8.0.150.0040.00416.88
8.0.140.0000.00816.89
8.0.130.0050.00013.26
8.0.120.0050.00316.83
8.0.110.0060.00316.77
8.0.100.0040.00416.79
8.0.90.0030.00316.70
8.0.80.0060.01316.90
8.0.70.0000.00716.80
8.0.60.0000.00716.90
8.0.50.0000.00716.70
8.0.30.0090.00916.89
8.0.20.0050.01717.40
8.0.10.0050.00216.91
8.0.00.0120.00616.73
7.4.330.0020.00215.09
7.4.320.0000.00616.41
7.4.300.0000.00616.48
7.4.290.0000.00716.51
7.4.280.0050.00316.58
7.4.270.0030.00316.61
7.4.260.0040.00416.38
7.4.250.0040.00416.40
7.4.240.0040.00416.49
7.4.230.0030.00316.49
7.4.220.0090.00816.61
7.4.210.0060.00816.36
7.4.200.0030.00316.56
7.4.160.0150.00016.36
7.4.150.0070.01017.40
7.4.140.0120.01017.86
7.4.130.0110.00816.36
7.4.120.0100.00716.42
7.4.110.0060.01216.56
7.4.100.0110.01116.33
7.4.90.0060.01216.44
7.4.80.0030.01919.39
7.4.70.0100.01316.38
7.4.60.0130.01016.43
7.4.50.0000.00416.32
7.4.40.0100.00716.54
7.4.30.0030.01416.36
7.4.00.0100.00614.84
7.3.330.0000.00512.93
7.3.320.0050.00013.03
7.3.310.0030.00316.30
7.3.300.0000.00716.21
7.3.290.0070.00716.26
7.3.280.0140.00416.17
7.3.270.0070.01117.40
7.3.260.0090.00916.31
7.3.240.0100.00716.44
7.3.230.0100.00716.39
7.3.210.0070.01016.36
7.3.200.0120.00619.39
7.3.190.0130.00316.25
7.3.180.0100.00616.06
7.3.170.0040.01116.27
7.3.160.0090.00616.39
7.3.120.0040.01114.74
7.3.110.0110.00714.70
7.3.100.0060.00614.89
7.3.90.0150.00014.69
7.3.80.0060.00914.45
7.3.70.0100.00714.85
7.3.60.0030.00914.66
7.3.50.0040.01114.55
7.3.40.0050.00514.82
7.3.30.0030.00614.77
7.3.20.0090.00916.35
7.3.10.0060.00316.36
7.3.00.0070.00716.44
7.2.330.0160.00616.45
7.2.320.0060.01316.39
7.2.310.0100.00716.43
7.2.300.0070.01316.32
7.2.290.0070.01016.57
7.2.250.0030.01314.87
7.2.240.0100.01015.03
7.2.230.0030.01214.63
7.2.220.0060.00915.09
7.2.210.0030.00815.09
7.2.200.0140.00014.98
7.2.190.0100.00614.87
7.2.180.0070.00414.86
7.2.170.0040.01114.89
7.2.00.0140.00319.14
7.1.330.0120.00015.72
7.1.320.0080.00815.69
7.1.310.0000.01215.53
7.1.300.0000.01415.50
7.1.290.0120.00615.76
7.1.280.0060.00615.72
7.1.270.0050.00515.54
7.1.260.0030.00615.93
7.1.100.0060.00617.85
7.1.70.0000.00917.11
7.1.60.0140.01019.14
7.1.50.0030.01616.70
7.1.00.0000.08022.54
7.0.200.0050.00216.57
7.0.140.0100.07022.08
7.0.60.0170.07320.01
7.0.50.0070.03717.73
7.0.40.0130.08019.98
7.0.30.0400.04320.33
7.0.20.0270.07720.09
7.0.10.0100.07720.18
7.0.00.0130.07720.18
5.6.280.0100.06720.95
5.6.210.0070.03720.66
5.6.200.0030.04318.14
5.6.190.0030.08720.33
5.6.180.0300.06320.56
5.6.170.0200.03720.52
5.6.160.0070.08720.49
5.6.150.0130.06718.12
5.6.140.0070.06318.18
5.6.130.0000.06018.09
5.6.120.0170.03021.04
5.6.110.0100.07721.00
5.6.100.0070.05320.96
5.6.90.0130.07720.96
5.6.80.0070.04320.28
5.5.350.0330.07020.32
5.5.340.0000.04317.91
5.5.330.0100.08020.43
5.5.320.0230.04720.50
5.5.310.0200.05720.20
5.5.300.0100.08017.93
5.5.290.0000.06718.00
5.5.280.0230.04020.64
5.5.270.0100.07720.79
5.5.260.0200.07720.85
5.5.250.0130.07720.79
5.5.240.0230.04720.21
5.4.450.0300.05719.27
5.4.440.0300.04019.41
5.4.430.0370.04719.10
5.4.420.0200.04319.22
5.4.410.0370.04019.34
5.4.400.0200.03718.93
5.4.390.0230.05019.26
5.4.380.1170.04718.46
5.4.370.1130.05318.61
5.4.360.1470.06718.74
5.4.350.1130.07018.73
5.4.340.1170.08318.56
5.4.320.0070.03512.45
5.4.310.0060.03812.45
5.4.300.0070.03812.45
5.4.290.0050.03912.45
5.4.280.0060.03512.35
5.4.270.0060.03512.35
5.4.260.0120.03312.34
5.4.250.0050.04012.35
5.4.240.0090.04812.34
5.4.230.0090.03912.34
5.4.220.0050.03712.34
5.4.210.0070.03312.34
5.4.200.0060.03812.34
5.4.190.0080.03412.33
5.4.180.0050.03712.34
5.4.170.0050.03612.34
5.4.160.0020.03912.34
5.4.150.0060.03512.34
5.4.140.0050.03612.02
5.4.130.0080.04012.01
5.4.120.0080.03311.97
5.4.110.0040.03711.96
5.4.100.0050.03811.96
5.4.90.0050.04211.96
5.4.80.0060.03611.96
5.4.70.0080.03311.96
5.4.60.0140.03311.96
5.4.50.0050.03511.96
5.4.40.0040.03611.95
5.4.30.0060.03511.95
5.4.20.0070.03411.95
5.4.10.0060.03311.95
5.4.00.0070.03511.44
5.3.290.0090.03612.80
5.3.280.0060.03712.71
5.3.270.0100.03612.72
5.3.260.0070.04612.72
5.3.250.0060.03612.72
5.3.240.0070.04112.72
5.3.230.0070.04112.71
5.3.220.0090.03712.68
5.3.210.0070.03912.68
5.3.200.0060.03612.68
5.3.190.0040.03812.68
5.3.180.0150.04112.67
5.3.170.0050.04212.67
5.3.160.0060.03512.68
5.3.150.0080.03512.67
5.3.140.0090.03312.66
5.3.130.0040.04212.66
5.3.120.0060.03712.66
5.3.110.0060.04212.66
5.3.100.0040.04012.12
5.3.90.0110.03712.08
5.3.80.0080.03612.08
5.3.70.0050.04212.07
5.3.60.0100.03912.06
5.3.50.0060.03512.00
5.3.40.0050.04512.00
5.3.30.0090.03511.95
5.3.20.0080.03211.72
5.3.10.0070.04611.69
5.3.00.0060.03511.68
5.2.170.0040.0309.18
5.2.160.0050.0339.18
5.2.150.0070.0289.18
5.2.140.0060.0369.17
5.2.130.0070.0279.14
5.2.120.0060.0279.13
5.2.110.0080.0279.14
5.2.100.0030.0299.14
5.2.90.0060.0379.14
5.2.80.0030.0329.13
5.2.70.0050.0309.13
5.2.60.0030.0329.09
5.2.50.0080.0279.05
5.2.40.0060.0279.03
5.2.30.0040.0379.02
5.2.20.0060.0269.00
5.2.10.0050.0268.93
5.2.00.0060.0268.79
5.1.60.0090.0188.07
5.1.50.0040.0268.07
5.1.40.0040.0278.06
5.1.30.0050.0248.41
5.1.20.0030.0348.43
5.1.10.0060.0278.15
5.1.00.0060.0248.15
5.0.50.0020.0216.63
5.0.40.0050.0286.49
5.0.30.0050.0336.30
5.0.20.0050.0176.27
5.0.10.0030.0196.24
5.0.00.0020.0326.23
4.4.90.0030.0154.78
4.4.80.0040.0154.75
4.4.70.0030.0154.76
4.4.60.0020.0174.75
4.4.50.0040.0144.77
4.4.40.0040.0254.71
4.4.30.0030.0154.76
4.4.20.0040.0154.84
4.4.10.0040.0144.85
4.4.00.0000.0314.76
4.3.110.0030.0174.67
4.3.100.0020.0244.67
4.3.90.0040.0134.64
4.3.80.0010.0264.58
4.3.70.0030.0144.63
4.3.60.0050.0134.63
4.3.50.0040.0144.63
4.3.40.0060.0204.54
4.3.30.0020.0163.29
4.3.20.0030.0183.27
4.3.10.0020.0153.23
4.3.00.0100.01315.29

preferences:
37.07 ms | 401 KiB | 5 Q