3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = range(1, 10); $testated = array_slice($array, 6, -4); $removed = array_splice($array, 6, -4, array(42)); var_dump($removed, $testated, $removed === $testated, $array);

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.0180.00018.27
8.3.50.0140.00821.14
8.3.40.0090.00618.42
8.3.30.0070.01120.26
8.3.20.0000.00820.39
8.3.10.0040.00420.96
8.3.00.0000.00723.66
8.2.180.0070.01116.50
8.2.170.0070.01422.96
8.2.160.0070.00720.46
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0020.00526.16
8.2.120.0040.00420.87
8.2.110.0110.00419.27
8.2.100.0070.00417.78
8.2.90.0000.00719.27
8.2.80.0090.00017.97
8.2.70.0050.00317.50
8.2.60.0050.00318.04
8.2.50.0080.00418.07
8.2.40.0050.00318.03
8.2.30.0080.00019.38
8.2.20.0060.00317.49
8.2.10.0000.00717.61
8.2.00.0060.00317.67
8.1.280.0120.00325.92
8.1.270.0050.00223.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0070.00323.73
8.1.230.0060.00622.82
8.1.220.0000.00818.77
8.1.210.0090.00018.91
8.1.200.0030.00617.35
8.1.190.0030.00517.51
8.1.180.0040.00418.10
8.1.170.0060.00318.53
8.1.160.0000.00818.72
8.1.150.0000.00818.61
8.1.140.0080.00017.25
8.1.130.0030.00317.74
8.1.120.0040.00417.29
8.1.110.0000.00717.29
8.1.100.0070.00017.42
8.1.90.0000.00717.27
8.1.80.0000.00817.34
8.1.70.0000.00717.31
8.1.60.0000.00917.51
8.1.50.0040.00417.39
8.1.40.0110.00017.30
8.1.30.0000.00817.45
8.1.20.0040.00417.51
8.1.10.0040.00417.55
8.1.00.0000.00717.42
8.0.300.0000.00720.02
8.0.290.0030.00617.16
8.0.280.0000.00718.27
8.0.270.0000.00717.10
8.0.260.0000.00716.76
8.0.250.0080.00016.87
8.0.240.0070.00316.78
8.0.230.0000.00716.81
8.0.220.0070.00316.78
8.0.210.0040.00416.79
8.0.200.0030.00316.84
8.0.190.0040.00416.86
8.0.180.0040.00416.85
8.0.170.0040.00416.73
8.0.160.0000.00716.85
8.0.150.0030.00316.71
8.0.140.0040.00416.71
8.0.130.0030.00313.23
8.0.120.0000.00816.84
8.0.110.0000.00716.78
8.0.100.0000.00716.93
8.0.90.0070.00016.68
8.0.80.0060.00916.80
8.0.70.0040.00416.60
8.0.60.0000.00816.65
8.0.50.0060.00316.93
8.0.30.0120.00617.11
8.0.20.0100.01017.40
8.0.10.0000.00716.93
8.0.00.0090.01016.69
7.4.330.0000.00516.76
7.4.320.0030.00316.47
7.4.300.0000.00616.50
7.4.290.0000.00716.50
7.4.280.0040.00416.50
7.4.270.0000.00716.43
7.4.260.0050.00013.19
7.4.250.0030.00616.60
7.4.240.0070.00016.51
7.4.230.0030.00316.49
7.4.220.0060.01416.60
7.4.210.0060.00816.64
7.4.200.0000.00716.42
7.4.190.0000.00816.35
7.4.160.0110.01116.38
7.4.150.0100.00717.40
7.4.140.0030.01617.86
7.4.130.0100.00716.45
7.4.120.0080.01116.40
7.4.110.0140.00316.42
7.4.100.0100.00716.32
7.4.90.0110.00716.45
7.4.80.0080.01019.39
7.4.70.0030.01316.37
7.4.60.0090.00916.45
7.4.50.0030.00616.48
7.4.40.0060.00922.77
7.4.30.0060.01216.41
7.4.00.0100.00314.89
7.3.330.0050.00013.11
7.3.320.0000.00512.92
7.3.310.0000.00816.02
7.3.300.0000.00716.03
7.3.290.0100.00316.15
7.3.280.0100.00816.19
7.3.270.0140.00317.40
7.3.260.0140.00518.24
7.3.250.0100.00716.20
7.3.240.0110.01116.59
7.3.230.0060.01116.39
7.3.210.0090.00916.33
7.3.200.0070.01319.39
7.3.190.0130.00916.18
7.3.180.0070.01016.15
7.3.170.0070.01116.32
7.3.160.0070.01416.17
7.3.120.0070.00714.97
7.3.00.0060.00616.44
7.2.330.0140.00316.27
7.2.320.0110.01116.61
7.2.310.0110.00716.40
7.2.300.0120.00616.38
7.2.290.0080.00916.44
7.2.130.0060.00916.60
7.2.120.0000.01316.93
7.2.110.0040.01116.88
7.2.100.0050.00816.84
7.2.90.0000.00916.85
7.2.80.0000.01016.87
7.2.70.0060.00916.67
7.2.60.0070.00316.90
7.2.50.0070.00716.76
7.2.40.0070.00716.88
7.2.30.0110.00716.74
7.2.20.0070.00416.83
7.2.10.0040.00816.72
7.2.00.0080.00617.93
7.1.250.0110.00415.75
7.1.240.0060.00615.61
7.1.230.0100.00315.58
7.1.220.0070.00715.70
7.1.210.0040.00815.84
7.1.200.0020.01115.80
7.1.190.0060.00615.88
7.1.180.0080.00415.88
7.1.170.0030.00815.93
7.1.160.0110.00015.92
7.1.150.0000.01215.79
7.1.140.0110.00315.83
7.1.130.0030.01015.86
7.1.120.0030.00715.95
7.1.110.0000.01115.84
7.1.100.0020.01116.71
7.1.90.0090.00315.95
7.1.80.0100.00315.85
7.1.70.0050.00416.35
7.1.60.0080.00917.42
7.1.50.0060.01016.22
7.1.40.0090.00315.76
7.1.30.0040.00815.75
7.1.20.0040.00415.87
7.1.10.0090.00315.54
7.1.00.0060.01919.12
7.0.330.0000.00915.24
7.0.320.0100.00315.17
7.0.310.0060.00915.05
7.0.300.0030.01015.46
7.0.290.0040.01115.38
7.0.280.0070.00414.93
7.0.270.0070.00715.46
7.0.260.0100.00315.28
7.0.250.0030.00915.28
7.0.240.0000.01115.58
7.0.230.0100.00315.44
7.0.220.0020.00515.29
7.0.210.0060.00315.17
7.0.200.0040.00716.04
7.0.190.0040.01115.27
7.0.180.0000.01315.46
7.0.170.0090.00315.46
7.0.160.0080.00015.20
7.0.150.0030.00915.19
7.0.140.0030.04018.68
7.0.130.0050.00515.30
7.0.120.0030.00615.41
7.0.110.0080.00315.16
7.0.100.0050.03517.52
7.0.90.0070.04317.69
7.0.80.0200.04317.57
7.0.70.0030.04917.46
7.0.60.0180.04617.55
7.0.50.0120.02917.96
7.0.40.0020.03216.78
7.0.30.0100.04016.78
7.0.20.0100.04116.77
7.0.10.0090.04716.70
7.0.00.0070.04216.87
5.6.380.0070.00313.98
5.6.370.0060.00314.14
5.6.360.0110.00314.36
5.6.350.0060.00613.84
5.6.340.0060.00614.15
5.6.330.0000.01014.23
5.6.320.0100.00614.11
5.6.310.0000.01314.24
5.6.300.0030.00714.42
5.6.290.0070.00314.63
5.6.280.0050.04017.54
5.6.270.0030.01214.23
5.6.260.0040.00814.21
5.6.250.0050.04517.37
5.6.240.0090.04117.34
5.6.230.0030.04417.37
5.6.220.0040.03017.40
5.6.210.0080.04517.49
5.6.200.0050.04117.71
5.6.190.0130.03817.64
5.6.180.0120.03817.58
5.6.170.0050.04217.56
5.6.160.0070.05017.59
5.6.150.0060.03817.49
5.6.140.0080.04217.55
5.6.130.0120.03717.64
5.6.120.0060.03817.60
5.6.110.0050.04617.54
5.6.100.0140.03717.55
5.6.90.0100.04217.60
5.6.80.0030.04317.12
5.6.70.0100.04217.38
5.6.60.0030.02717.30
5.6.50.0110.03917.30
5.6.40.0120.04017.31
5.6.30.0070.03717.23
5.6.20.0050.02617.33
5.6.10.0040.04717.22
5.6.00.0070.03817.21
5.5.380.0030.02515.74
5.5.370.0100.04115.76
5.5.360.0050.04415.65
5.5.350.0050.02615.67
5.5.340.0080.02315.94
5.5.330.0070.03115.84
5.5.320.0090.02615.90
5.5.310.0070.04315.93
5.5.300.0080.04015.94
5.5.290.0100.04015.88
5.5.280.0050.03116.00
5.5.270.0080.04115.87
5.5.260.0020.04915.90
5.5.250.0050.04315.77
5.5.240.0080.03915.64
5.5.230.0100.03315.59
5.5.220.0110.04015.51
5.5.210.0070.03515.60
5.5.200.0050.03815.59
5.5.190.0050.02815.64
5.5.180.0050.04415.58
5.5.170.0070.00311.00
5.5.160.0100.02715.54
5.5.150.0050.04215.60
5.5.140.0120.03915.56
5.5.130.0050.04415.56
5.5.120.0070.02815.60
5.5.110.0050.04015.62
5.5.100.0070.03315.52
5.5.90.0030.04215.55
5.5.80.0080.03815.52
5.5.70.0030.03215.49
5.5.60.0100.03215.48
5.5.50.0020.03015.54
5.5.40.0130.02315.55
5.5.30.0050.03715.46
5.5.20.0130.03515.57
5.5.10.0120.03015.51
5.5.00.0070.04315.52
5.4.450.0050.04715.07
5.4.440.0060.02115.07
5.4.430.0050.04415.23
5.4.420.0080.04115.15
5.4.410.0030.02915.12
5.4.400.0030.04414.96
5.4.390.0050.03915.04
5.4.380.0070.03215.08
5.4.370.0060.04015.12
5.4.360.0080.04115.01
5.4.350.0070.03315.03
5.4.340.0120.03714.95
5.4.330.0060.00311.13
5.4.320.0040.04215.08
5.4.310.0020.02714.91
5.4.300.0050.04015.03
5.4.290.0070.03414.92
5.4.280.0050.04215.01
5.4.270.0130.03314.89
5.4.260.0080.03115.09
5.4.250.0140.04014.96
5.4.240.0070.03815.01
5.4.230.0020.04415.03
5.4.220.0050.04514.98
5.4.210.0060.04215.03
5.4.200.0090.02415.08
5.4.190.0100.03515.07
5.4.180.0090.04215.04
5.4.170.0080.03814.96
5.4.160.0060.03315.03
5.4.150.0070.04015.10
5.4.140.0050.03913.62
5.4.130.0040.03813.63
5.4.120.0050.04213.66
5.4.110.0000.03213.69
5.4.100.0080.02513.76
5.4.90.0080.03513.71
5.4.80.0080.02013.68
5.4.70.0050.03313.67
5.4.60.0050.02613.69
5.4.50.0060.03313.65
5.4.40.0020.04013.73
5.4.30.0090.03013.62
5.4.20.0100.03313.65
5.4.10.0070.04013.65
5.4.00.0060.02313.38
5.3.290.0100.02712.79
5.3.280.0050.03312.73
5.3.270.0070.03512.74
5.3.260.0050.02212.78
5.3.250.0100.03312.80
5.3.240.0060.03812.80
5.3.230.0050.03612.71
5.3.220.0030.02812.76
5.3.210.0050.04312.79
5.3.200.0090.04412.69
5.3.190.0030.03212.79
5.3.180.0050.04012.70
5.3.170.0050.03812.76
5.3.160.0030.02912.71
5.3.150.0030.04412.75
5.3.140.0110.03112.70
5.3.130.0030.02812.76
5.3.120.0080.04012.76
5.3.110.0050.03912.69
5.3.100.0020.04212.50
5.3.90.0050.04112.50
5.3.80.0020.02712.51
5.3.70.0090.03612.50
5.3.60.0050.03912.49
5.3.50.0110.03312.48
5.3.40.0120.03512.35
5.3.30.0020.03812.44
5.3.20.0030.03812.23
5.3.10.0060.03812.26
5.3.00.0030.04112.30
5.2.170.0020.03811.11
5.2.160.0030.01811.05
5.2.150.0030.02011.07
5.2.140.0070.02310.99
5.2.130.0000.03611.05
5.2.120.0030.02111.08
5.2.110.0070.03211.05
5.2.100.0090.03011.05
5.2.90.0030.03311.03
5.2.80.0030.03311.07
5.2.70.0050.03411.01
5.2.60.0030.03710.92
5.2.50.0070.03210.99
5.2.40.0090.02510.96
5.2.30.0030.03310.96
5.2.20.0030.03010.98
5.2.10.0050.01810.96
5.2.00.0030.03210.87
5.1.60.0020.03010.72
5.1.50.0030.02610.72
5.1.40.0050.01510.72
5.1.30.0040.01310.72
5.1.20.0030.01510.72
5.1.10.0050.02410.72
5.1.00.0050.02010.72
5.0.50.0000.02210.72
5.0.40.0040.01810.72
5.0.30.0040.03310.72
5.0.20.0020.01410.72
5.0.10.0050.02310.72
5.0.00.0000.02610.72
4.4.90.0020.02110.72
4.4.80.0020.01810.72
4.4.70.0020.01910.72
4.4.60.0030.01110.72
4.4.50.0020.02210.72
4.4.40.0020.03010.72
4.4.30.0010.01010.72
4.4.20.0040.01810.72
4.4.10.0020.01810.72
4.4.00.0050.01710.72
4.3.110.0020.01010.72
4.3.100.0020.02210.72
4.3.90.0020.01210.72
4.3.80.0000.02710.72
4.3.70.0020.01010.72
4.3.60.0030.01410.72
4.3.50.0050.01610.72
4.3.40.0030.01310.72
4.3.30.0030.01910.72
4.3.20.0020.02210.72
4.3.10.0020.01010.72
4.3.00.0050.01110.72

preferences:
42.6 ms | 401 KiB | 5 Q