3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ary = array('a','b','c','d','e'); $ary2 = array_slice($ary, 0,3); $ary3 = array_slice($ary, 3); print_r($ary2); print_r($ary3);

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.40.0090.00618.59
8.3.30.0100.00319.05
8.3.20.0040.00420.29
8.3.10.0000.00823.66
8.3.00.0040.00417.38
8.2.170.0100.00322.96
8.2.160.0070.00720.38
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.26
8.2.110.0100.00022.21
8.2.100.0120.00017.78
8.2.90.0040.00419.13
8.2.80.0000.00917.97
8.2.70.0050.00317.38
8.2.60.0020.00517.80
8.2.50.0000.00818.07
8.2.40.0000.00819.82
8.2.30.0000.00717.90
8.2.20.0060.00317.52
8.2.10.0030.00617.96
8.2.00.0040.00417.73
8.1.270.0040.01223.83
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.68
8.1.230.0040.00719.16
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0100.00017.10
8.1.190.0060.00617.23
8.1.180.0040.00418.10
8.1.170.0000.00818.58
8.1.160.0000.00721.85
8.1.150.0070.00018.78
8.1.140.0040.00417.43
8.1.130.0030.00317.81
8.1.120.0030.00317.28
8.1.110.0070.00017.25
8.1.100.0060.00417.39
8.1.90.0030.00617.35
8.1.80.0000.00917.31
8.1.70.0000.00717.34
8.1.60.0060.00317.53
8.1.50.0040.00417.51
8.1.40.0040.00417.46
8.1.30.0040.00417.56
8.1.20.0040.00417.56
8.1.10.0000.00717.29
8.1.00.0040.00417.31
8.0.300.0040.00418.77
8.0.290.0050.00516.63
8.0.280.0030.00318.37
8.0.270.0000.00717.14
8.0.260.0000.00617.08
8.0.250.0030.00316.93
8.0.240.0000.00816.82
8.0.230.0000.00716.73
8.0.220.0070.00016.81
8.0.210.0000.00716.87
8.0.200.0000.00616.81
8.0.190.0000.00716.88
8.0.180.0100.00016.72
8.0.170.0050.00316.79
8.0.160.0070.00016.89
8.0.150.0000.00716.73
8.0.140.0030.00316.66
8.0.130.0000.00613.21
8.0.120.0070.00016.69
8.0.110.0030.00516.76
8.0.100.0000.00816.70
8.0.90.0070.00016.77
8.0.80.0030.01216.81
8.0.70.0040.00416.64
8.0.60.0040.00416.84
8.0.50.0050.00316.76
8.0.30.0110.00817.00
8.0.20.0130.00517.40
8.0.10.0000.00817.04
8.0.00.0110.00916.55
7.4.330.0000.00515.04
7.4.320.0030.00316.46
7.4.300.0060.00316.36
7.4.290.0000.00716.42
7.4.280.0040.00416.40
7.4.270.0050.00216.56
7.4.260.0070.00316.46
7.4.250.0050.00316.41
7.4.240.0050.00216.54
7.4.230.0030.00316.52
7.4.220.0120.00616.57
7.4.210.0090.00716.50
7.4.200.0080.00016.34
7.4.160.0130.00316.28
7.4.150.0090.00917.40
7.4.140.0060.01217.86
7.4.130.0110.00816.31
7.4.120.0110.00916.22
7.4.110.0100.00716.27
7.4.100.0150.00916.21
7.4.90.0000.01616.37
7.4.80.0080.00819.39
7.4.70.0120.00816.48
7.4.60.0160.00616.54
7.4.50.0000.00416.42
7.4.40.0100.01016.44
7.4.30.0090.00616.48
7.4.00.0040.01115.02
7.3.330.0000.00512.98
7.3.320.0000.00712.98
7.3.310.0000.00716.01
7.3.300.0030.00315.98
7.3.290.0030.01216.16
7.3.280.0090.00616.17
7.3.270.0070.01017.40
7.3.260.0110.00616.08
7.3.250.0080.00916.21
7.3.240.0060.01216.35
7.3.230.0150.00316.39
7.3.210.0090.00916.23
7.3.200.0100.00719.39
7.3.190.0030.01316.18
7.3.180.0090.00616.00
7.3.170.0030.01316.27
7.3.160.0030.01316.35
7.3.120.0000.01414.76
7.3.110.0040.01114.66
7.3.100.0070.00714.88
7.3.90.0060.00914.49
7.3.80.0060.00914.58
7.3.70.0070.01014.74
7.3.60.0000.01414.22
7.3.50.0070.01014.30
7.3.40.0040.01214.70
7.3.30.0090.00614.66
7.3.20.0030.00816.53
7.3.10.0090.00716.25
7.3.00.0060.00816.25
7.2.330.0030.02016.52
7.2.320.0120.00916.51
7.2.310.0130.00716.71
7.2.300.0130.00316.54
7.2.290.0080.00816.32
7.2.240.0100.00614.94
7.2.230.0150.00314.68
7.2.220.0080.00415.08
7.2.210.0070.01014.77
7.2.200.0090.00614.83
7.2.190.0000.01814.78
7.2.180.0030.01414.47
7.2.170.0030.01014.92
7.2.160.0030.01514.70
7.2.150.0070.01016.82
7.2.140.0040.00816.68
7.2.130.0020.01416.67
7.2.120.0040.00916.49
7.2.110.0040.01016.66
7.2.100.0080.00516.70
7.2.90.0090.00416.61
7.2.80.0020.01316.63
7.2.70.0060.00716.49
7.2.60.0100.00516.58
7.2.50.0110.00616.65
7.2.40.0050.00716.56
7.2.30.0080.00416.61
7.2.20.0100.00716.65
7.2.10.0100.01116.78
7.2.00.0060.01017.71
7.1.330.0080.00315.55
7.1.320.0040.01115.72
7.1.310.0130.00015.83
7.1.300.0070.00715.43
7.1.290.0070.01015.84
7.1.280.0000.01615.56
7.1.270.0060.00615.71
7.1.260.0030.01315.75
7.1.250.0090.00615.25
7.1.100.0050.00318.10
7.1.70.0030.00716.86
7.1.60.0060.01619.40
7.1.50.0000.02516.86
7.1.00.0070.07322.31
7.0.200.0310.00814.45
7.0.140.0000.07721.92
7.0.60.0170.07319.92
7.0.50.0070.08317.86
7.0.40.0130.06720.13
7.0.30.0130.04720.33
7.0.20.0300.08020.22
7.0.10.0070.04020.35
7.0.00.0130.07720.19
5.6.280.0030.07320.89
5.6.210.0030.05020.49
5.6.200.0030.04018.19
5.6.190.0030.06020.64
5.6.180.0230.07720.55
5.6.170.0230.04720.51
5.6.160.0070.04020.41
5.6.150.0070.06018.12
5.6.140.0100.03718.18
5.6.130.0330.05018.23
5.6.120.0030.05721.02
5.6.110.0170.07720.98
5.6.100.0030.09020.95
5.6.90.0070.06720.92
5.6.80.0070.08020.44
5.5.350.0000.05020.42
5.5.340.0100.06318.03
5.5.330.0130.04020.57
5.5.320.0100.05020.36
5.5.310.0270.05020.37
5.5.300.0130.07717.94
5.5.290.0070.08717.91
5.5.280.0070.04020.73
5.5.270.0030.08020.75
5.5.260.0170.08020.64
5.5.250.0200.06020.57
5.5.240.0200.07320.22
5.4.450.0470.04719.17
5.4.440.0430.04319.48
5.4.430.0130.05319.47
5.4.420.0430.05019.58
5.4.410.0300.04319.38
5.4.400.0100.05018.84
5.4.390.0230.04319.17
5.4.380.0200.06018.53
5.4.370.0130.06318.64
5.4.360.0300.04318.75
5.4.350.0430.06318.74
5.4.340.0270.04318.64
5.4.320.0070.03512.48
5.4.310.0060.03712.48
5.4.300.0060.03712.48
5.4.290.0050.03812.47
5.4.280.0070.03412.37
5.4.270.0060.03612.38
5.4.260.0050.03812.37
5.4.250.0050.03812.38
5.4.240.0080.03912.38
5.4.230.0050.04212.36
5.4.220.0060.03612.36
5.4.210.0060.03512.37
5.4.200.0030.04012.37
5.4.190.0050.04012.36
5.4.180.0070.03512.36
5.4.170.0080.03412.37
5.4.160.0080.03512.37
5.4.150.0050.03712.36
5.4.140.0070.03612.05
5.4.130.0080.03412.04
5.4.120.0080.03311.99
5.4.110.0050.03711.99
5.4.100.0080.03411.99
5.4.90.0020.04011.99
5.4.80.0070.03511.99
5.4.70.0050.03611.99
5.4.60.0040.03611.98
5.4.50.0070.03511.99
5.4.40.0060.04311.98
5.4.30.0060.03911.97
5.4.20.0060.03511.97
5.4.10.0060.04011.97
5.4.00.0080.03311.46
5.3.290.0060.03812.80
5.3.280.0070.03512.71
5.3.270.0050.05012.72
5.3.260.0070.03812.72
5.3.250.0080.04312.72
5.3.240.0070.03712.72
5.3.230.0060.04212.71
5.3.220.0070.04312.68
5.3.210.0090.03612.68
5.3.200.0070.04412.68
5.3.190.0080.05312.68
5.3.180.0040.03712.68
5.3.170.0050.04912.67
5.3.160.0040.04912.68
5.3.150.0050.03812.68
5.3.140.0060.03612.66
5.3.130.0060.04712.65
5.3.120.0030.04112.66
5.3.110.0070.04112.66
5.3.100.0050.03712.11
5.3.90.0090.04112.09
5.3.80.0020.04012.08
5.3.70.0100.03412.08
5.3.60.0040.03712.07
5.3.50.0040.03612.01
5.3.40.0070.03412.01
5.3.30.0040.03511.97
5.3.20.0070.03511.75
5.3.10.0040.04011.73
5.3.00.0050.03511.71
5.2.170.0030.0339.20
5.2.160.0050.0279.21
5.2.150.0050.0299.21
5.2.140.0050.0299.20
5.2.130.0020.0309.16
5.2.120.0020.0369.16
5.2.110.0050.0299.17
5.2.100.0040.0289.16
5.2.90.0040.0299.16
5.2.80.0050.0299.16
5.2.70.0030.0319.16
5.2.60.0030.0319.11
5.2.50.0060.0289.09
5.2.40.0050.0289.06
5.2.30.0030.0319.04
5.2.20.0030.0309.03
5.2.10.0040.0288.94
5.2.00.0040.0298.79
5.1.60.0030.0258.06
5.1.50.0030.0258.06
5.1.40.0030.0248.04
5.1.30.0040.0258.39
5.1.20.0050.0268.41
5.1.10.0030.0268.13
5.1.00.0070.0228.13
5.0.50.0040.0206.61
5.0.40.0040.0196.47
5.0.30.0010.0346.28
5.0.20.0030.0206.26
5.0.10.0020.0216.24
5.0.00.0020.0316.22
4.4.90.0020.0154.78
4.4.80.0020.0164.76
4.4.70.0030.0154.75
4.4.60.0040.0144.75
4.4.50.0050.0144.77
4.4.40.0030.0244.71
4.4.30.0020.0154.76
4.4.20.0040.0134.85
4.4.10.0010.0164.85
4.4.00.0020.0254.76
4.3.110.0020.0164.66
4.3.100.0020.0164.66
4.3.90.0040.0144.63
4.3.80.0030.0244.58
4.3.70.0020.0154.63
4.3.60.0040.0154.63
4.3.50.0030.0154.63
4.3.40.0030.0234.54
4.3.30.0010.0173.29
4.3.20.0020.0153.26
4.3.10.0020.0163.22
4.3.00.0000.01713.43

preferences:
35.77 ms | 400 KiB | 5 Q