3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = range(1, 10); $testated = array_slice($array, 6, -7); $removed = array_splice($array, 6, -7, 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.0070.01118.30
8.3.50.0150.00316.38
8.3.40.0070.00718.67
8.3.30.0160.00018.70
8.3.20.0040.00418.83
8.3.10.0080.00020.53
8.3.00.0090.00017.50
8.2.180.0140.00316.32
8.2.170.0070.00722.96
8.2.160.0110.00321.96
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00419.70
8.2.110.0080.00321.20
8.2.100.0030.00717.72
8.2.90.0060.00321.01
8.2.80.0050.00218.04
8.2.70.0080.00017.75
8.2.60.0060.00317.93
8.2.50.0060.00318.07
8.2.40.0000.00819.82
8.2.30.0000.00818.07
8.2.20.0000.00717.61
8.2.10.0030.00617.59
8.2.00.0070.00017.48
8.1.280.0000.01425.92
8.1.270.0000.00723.99
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0090.00022.42
8.1.230.0120.00020.71
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0040.00417.40
8.1.180.0080.00018.10
8.1.170.0040.00418.75
8.1.160.0040.00418.82
8.1.150.0050.00218.56
8.1.140.0030.00617.31
8.1.130.0030.00517.86
8.1.120.0000.00817.37
8.1.110.0070.00017.41
8.1.100.0040.00417.32
8.1.90.0030.00717.41
8.1.80.0000.00717.29
8.1.70.0070.00017.35
8.1.60.0060.00317.41
8.1.50.0040.00417.41
8.1.40.0020.00517.36
8.1.30.0000.00717.45
8.1.20.0030.00517.59
8.1.10.0020.00517.43
8.1.00.0000.00817.33
8.0.300.0060.00319.91
8.0.290.0040.00416.63
8.0.280.0040.00418.38
8.0.270.0070.00017.05
8.0.260.0000.00918.59
8.0.250.0040.00416.91
8.0.240.0100.00016.85
8.0.230.0030.00316.92
8.0.220.0000.00716.66
8.0.210.0030.00316.77
8.0.200.0030.00316.90
8.0.190.0000.00816.89
8.0.180.0030.00316.71
8.0.170.0030.00616.74
8.0.160.0030.00316.78
8.0.150.0040.00416.69
8.0.140.0040.00416.82
8.0.130.0000.00713.26
8.0.120.0030.00616.70
8.0.110.0040.00416.80
8.0.100.0050.00216.70
8.0.90.0000.00816.70
8.0.80.0100.00716.81
8.0.70.0040.00416.76
8.0.60.0000.00716.71
8.0.50.0000.00816.76
8.0.30.0150.00717.02
8.0.20.0100.00817.15
8.0.10.0040.00416.96
8.0.00.0110.00916.75
7.4.330.0000.00514.84
7.4.320.0000.00616.57
7.4.300.0000.00716.50
7.4.290.0030.00316.39
7.4.280.0000.01316.50
7.4.270.0030.00316.61
7.4.260.0020.00613.32
7.4.250.0040.00416.44
7.4.240.0030.00316.46
7.4.230.0000.00716.57
7.4.220.0070.01316.64
7.4.210.0070.00916.61
7.4.200.0000.00716.47
7.4.190.0050.00316.44
7.4.160.0030.01216.30
7.4.150.0040.01617.07
7.4.140.0080.01117.26
7.4.130.0120.00816.51
7.4.120.0140.00316.49
7.4.110.0100.01316.54
7.4.100.0120.00916.42
7.4.90.0160.00316.42
7.4.80.0120.00918.80
7.4.70.0030.01616.25
7.4.60.0090.00916.54
7.4.50.0040.00416.32
7.4.40.0050.00622.05
7.4.30.0030.01316.57
7.4.00.0070.01015.11
7.3.330.0070.00013.07
7.3.320.0040.00413.14
7.3.310.0040.00416.13
7.3.300.0030.00316.24
7.3.290.0120.00916.14
7.3.280.0050.01116.19
7.3.270.0080.00817.07
7.3.260.0110.00618.24
7.3.250.0090.00916.35
7.3.240.0120.00716.11
7.3.230.0060.01316.27
7.3.210.0120.00616.39
7.3.200.0090.00916.23
7.3.190.0080.00816.56
7.3.180.0130.00316.44
7.3.170.0100.01016.49
7.3.160.0110.00616.23
7.3.120.0110.00414.66
7.3.10.0060.00716.06
7.3.00.0090.00716.45
7.2.330.0090.00916.43
7.2.320.0130.01016.71
7.2.310.0090.00916.34
7.2.300.0100.00716.27
7.2.290.0160.00616.29
7.2.130.0060.00816.68
7.2.120.0110.00816.44
7.2.110.0060.01016.54
7.2.100.0140.00916.43
7.2.90.0180.00316.58
7.2.80.0110.00616.37
7.2.70.0110.00316.36
7.2.60.0070.01216.70
7.2.50.0070.00716.58
7.2.40.0080.00816.49
7.2.30.0120.00716.46
7.2.20.0050.00916.41
7.2.10.0130.01116.65
7.2.00.0090.00717.63
7.1.250.0040.00815.49
7.1.240.0040.00715.82
7.1.230.0070.01115.79
7.1.220.0070.01015.63
7.1.210.0110.01215.80
7.1.200.0210.00315.73
7.1.190.0030.00715.79
7.1.180.0060.00915.71
7.1.170.0050.01315.45
7.1.160.0070.00315.71
7.1.150.0000.01115.74
7.1.140.0030.01015.61
7.1.130.0060.01015.82
7.1.120.0070.00315.46
7.1.110.0060.00315.47
7.1.100.0050.00616.86
7.1.90.0050.00315.93
7.1.80.0060.00615.78
7.1.70.0040.00416.41
7.1.60.0070.01317.48
7.1.50.0030.01316.12
7.1.40.0070.00715.58
7.1.30.0030.00915.50
7.1.20.0100.00315.47
7.1.10.0000.01415.70
7.1.00.0030.04219.08
7.0.330.0060.00615.48
7.0.320.0110.00815.53
7.0.310.0090.00015.52
7.0.300.0090.01215.09
7.0.290.0070.01115.37
7.0.280.0040.00415.36
7.0.270.0050.00515.42
7.0.260.0060.00615.24
7.0.250.0000.00715.56
7.0.240.0030.00715.45
7.0.230.0140.00315.23
7.0.220.0070.00715.49
7.0.210.0030.00915.42
7.0.200.0080.00015.93
7.0.190.0060.00615.17
7.0.180.0030.00315.02
7.0.170.0030.01215.42
7.0.160.0090.00315.16
7.0.150.0090.00315.27
7.0.140.0050.03718.71
7.0.130.0130.00315.03
7.0.120.0040.01818.60
7.0.110.0060.01215.36
7.0.100.0130.00315.36
7.0.90.0030.01015.36
7.0.80.0070.00715.21
7.0.70.0080.01215.25
7.0.60.0080.04217.59
7.0.50.0090.04916.58
7.0.40.0040.02715.49
7.0.30.0090.03115.64
7.0.20.0120.03715.64
7.0.10.0130.03315.62
7.0.00.0150.03315.49
5.6.380.0150.00614.39
5.6.370.0070.00713.96
5.6.360.0070.00714.05
5.6.350.0040.00413.80
5.6.340.0060.00914.18
5.6.330.0100.00314.07
5.6.320.0080.00613.94
5.6.310.0030.01214.03
5.6.300.0050.00313.79
5.6.290.0120.00313.98
5.6.280.0040.04017.53
5.6.270.0070.00314.33
5.6.260.0090.00613.80
5.6.250.0000.01114.07
5.6.240.0040.00414.21
5.6.230.0000.00914.06
5.6.220.0000.01313.98
5.6.210.0100.02717.20
5.6.200.0050.02716.11
5.6.190.0090.03316.01
5.6.180.0070.03316.10
5.6.170.0070.02416.09
5.6.160.0170.03916.11
5.6.150.0050.04716.19
5.6.140.0010.04716.17
5.6.130.0090.02816.10
5.6.120.0110.01816.15
5.6.110.0150.02716.03
5.6.100.0090.04016.13
5.6.90.0110.03816.18
5.6.80.0090.04715.96
5.6.70.0050.02515.74
5.6.60.0070.02715.81
5.6.50.0080.04315.86
5.6.40.0130.03715.74
5.6.30.0110.04315.86
5.6.20.0120.03715.88
5.6.10.0100.04315.78
5.6.00.0100.04315.79
5.5.380.0030.01011.01
5.5.370.0090.00010.68
5.5.360.0030.00911.33
5.5.350.0150.04515.62
5.5.340.0050.03514.46
5.5.330.0030.02714.57
5.5.320.0050.04114.46
5.5.310.0060.04014.54
5.5.300.0060.03614.50
5.5.290.0050.02514.43
5.5.280.0040.02614.53
5.5.270.0070.03514.54
5.5.260.0070.03714.58
5.5.250.0040.03914.41
5.5.240.0100.02514.18
5.5.230.0100.02014.04
5.5.220.0100.04014.12
5.5.210.0070.03814.10
5.5.200.0100.02314.10
5.5.190.0040.04514.09
5.5.180.0080.03813.99
5.5.170.0070.00711.03
5.5.160.0040.04514.10
5.5.150.0100.02814.06
5.5.140.0060.04014.03
5.5.130.0040.03714.12
5.5.120.0060.02014.05
5.5.110.0050.02614.05
5.5.100.0020.02514.10
5.5.90.0070.02214.07
5.5.80.0060.04213.90
5.5.70.0050.04414.13
5.5.60.0030.04013.96
5.5.50.0140.03514.04
5.5.40.0050.03413.88
5.5.30.0000.02813.90
5.5.20.0060.01814.11
5.5.10.0050.03514.04
5.5.00.0030.02913.91
5.4.450.0100.03815.14
5.4.440.0080.03715.13
5.4.430.0050.04215.18
5.4.420.0070.02714.95
5.4.410.0060.03415.02
5.4.400.0020.04215.07
5.4.390.0080.01814.93
5.4.380.0040.02515.02
5.4.370.0020.04414.87
5.4.360.0140.03814.70
5.4.350.0110.04015.05
5.4.340.0180.03214.83
5.4.330.0240.00710.85
5.4.320.0180.03214.97
5.4.310.0150.03314.70
5.4.300.0080.03814.92
5.4.290.0070.03214.97
5.4.280.0060.03014.80
5.4.270.0080.02014.86
5.4.260.0050.02214.92
5.4.250.0040.02414.79
5.4.240.0110.02514.76
5.4.230.0050.04114.91
5.4.220.0090.03614.71
5.4.210.0030.02514.82
5.4.200.0070.03514.92
5.4.190.0030.02714.78
5.4.180.0120.02814.95
5.4.170.0080.03115.14
5.4.160.0020.02514.79
5.4.150.0020.02314.62
5.4.140.0110.02013.46
5.4.130.0040.02313.58
5.4.120.0060.01813.26
5.4.110.0140.01813.58
5.4.100.0100.02313.50
5.4.90.0140.01813.52
5.4.80.0030.02113.65
5.4.70.0050.02013.48
5.4.60.0060.02013.47
5.4.50.0020.02213.47
5.4.40.0020.02213.51
5.4.30.0020.02113.37
5.4.20.0040.02113.54
5.4.10.0070.01713.55
5.4.00.0020.02013.15
5.3.290.0170.02212.45
5.3.280.0120.04012.37
5.3.270.0130.03712.46
5.3.260.0050.02112.48
5.3.250.0050.02112.44
5.3.240.0040.02412.38
5.3.230.0090.01912.43
5.3.220.0180.01812.38
5.3.210.0090.02612.28
5.3.200.0060.02212.39
5.3.190.0070.02112.42
5.3.180.0060.02012.44
5.3.170.0040.02412.41
5.3.160.0040.02112.48
5.3.150.0030.02512.37
5.3.140.0020.02312.39
5.3.130.0030.02412.44
5.3.120.0020.02312.26
5.3.110.0070.01912.41
5.3.100.0050.01812.05
5.3.90.0030.02512.10
5.3.80.0070.02111.99
5.3.70.0040.02311.93
5.3.60.0070.01812.13
5.3.50.0000.02512.00
5.3.40.0030.02112.10
5.3.30.0020.02112.01
5.3.20.0100.01811.96
5.3.10.0060.02111.95
5.3.00.0170.01811.82
5.2.170.0020.01910.31
5.2.160.0020.01710.30
5.2.150.0000.01910.25
5.2.140.0020.01910.14
5.2.130.0090.01710.24
5.2.120.0080.01310.26
5.2.110.0100.01310.26
5.2.100.0120.01410.21
5.2.90.0080.01810.16
5.2.80.0050.01910.24
5.2.70.0060.01510.19
5.2.60.0040.01610.19
5.2.50.0080.01210.07
5.2.40.0040.01610.14
5.2.30.0040.01510.11
5.2.20.0080.0139.91
5.2.10.0050.0159.86
5.2.00.0000.0209.95
5.1.60.0030.0249.25
5.1.50.0050.0279.13
5.1.40.0050.0159.26
5.1.30.0060.0319.50
5.1.20.0080.0179.48
5.1.10.0060.0209.20
5.1.00.0040.0289.06
5.0.50.0110.0188.21
5.0.40.0030.0238.21
5.0.30.0020.0338.21
5.0.20.0050.0188.21
5.0.10.0060.0218.21
5.0.00.0020.0288.21
4.4.90.0000.0148.21
4.4.80.0040.0078.21
4.4.70.0040.0108.21
4.4.60.0040.0088.21
4.4.50.0060.0078.21
4.4.40.0050.0278.21
4.4.30.0110.0158.21
4.4.20.0060.0128.21
4.4.10.0030.0168.21
4.4.00.0050.0208.21
4.3.110.0000.0238.21
4.3.100.0030.0158.21
4.3.90.0020.0128.21
4.3.80.0020.0308.21
4.3.70.0050.0188.21
4.3.60.0010.0188.21
4.3.50.0000.0208.21
4.3.40.0010.0308.21
4.3.30.0000.0248.21
4.3.20.0020.0188.21
4.3.10.0020.0158.21
4.3.00.0000.0198.21

preferences:
59.46 ms | 401 KiB | 5 Q