3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php $a = array( "a"=>"red", "b"=>"green", "c"=>"blue", "d"=>"yellow", "e"=>"brown", ); print_r(array_slice($a,1,2)); ?> </body> </html>

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.0110.00418.18
8.3.50.0140.00521.89
8.3.40.0070.00718.54
8.3.30.0100.00318.92
8.3.20.0040.00420.22
8.3.10.0080.00020.56
8.3.00.0060.00319.13
8.2.180.0030.01016.63
8.2.170.0030.01222.96
8.2.160.0030.01020.57
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00722.23
8.2.110.0000.00919.25
8.2.100.0040.00817.71
8.2.90.0030.00619.22
8.2.80.0060.00317.97
8.2.70.0050.00317.50
8.2.60.0000.00817.80
8.2.50.0040.00418.10
8.2.40.0020.00518.09
8.2.30.0070.00318.05
8.2.20.0000.00717.70
8.2.10.0000.00819.80
8.2.00.0050.00317.73
8.1.280.0130.00925.92
8.1.270.0040.00422.14
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0100.00022.45
8.1.230.0120.00017.76
8.1.220.0040.00417.75
8.1.210.0050.00318.77
8.1.200.0030.00617.00
8.1.190.0000.00817.10
8.1.180.0080.00018.10
8.1.170.0040.00418.53
8.1.160.0040.00421.98
8.1.150.0040.00418.69
8.1.140.0050.00217.39
8.1.130.0030.00317.80
8.1.120.0050.00217.38
8.1.110.0060.00317.26
8.1.100.0040.00417.39
8.1.90.0050.00317.38
8.1.80.0070.00017.42
8.1.70.0030.00317.32
8.1.60.0040.00417.48
8.1.50.0000.00817.48
8.1.40.0000.00817.45
8.1.30.0050.00317.54
8.1.20.0030.00617.48
8.1.10.0050.00317.42
8.1.00.0000.00717.32
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0030.00318.43
8.0.270.0040.00417.25
8.0.260.0030.00317.25
8.0.250.0000.00716.92
8.0.240.0000.00716.95
8.0.230.0040.00416.88
8.0.220.0030.00316.69
8.0.210.0040.00416.68
8.0.200.0000.00616.84
8.0.190.0000.00716.90
8.0.180.0000.01116.85
8.0.170.0000.00816.87
8.0.160.0000.00816.77
8.0.150.0000.00716.63
8.0.140.0040.00316.72
8.0.130.0050.00013.17
8.0.120.0080.00016.79
8.0.110.0000.00716.77
8.0.100.0040.00416.88
8.0.90.0040.00416.77
8.0.80.0090.00616.78
8.0.70.0040.00416.71
8.0.60.0080.00016.81
8.0.50.0000.00716.77
8.0.30.0100.01517.07
8.0.20.0120.00717.40
8.0.10.0040.00416.86
8.0.00.0110.00816.88
7.4.330.0020.00215.01
7.4.320.0070.00016.41
7.4.300.0040.00416.43
7.4.290.0000.00716.42
7.4.280.0070.00016.40
7.4.270.0040.00416.57
7.4.260.0030.00316.42
7.4.250.0040.00416.39
7.4.240.0020.00516.46
7.4.230.0000.00716.22
7.4.220.0140.00716.56
7.4.210.0060.00916.44
7.4.200.0000.00716.33
7.4.160.0090.00616.50
7.4.150.0060.01217.40
7.4.140.0090.00917.86
7.4.130.0120.00416.44
7.4.120.0100.00816.56
7.4.110.0100.00716.25
7.4.100.0070.01016.44
7.4.90.0130.01016.39
7.4.80.0120.00419.39
7.4.70.0080.00816.37
7.4.60.0080.00816.59
7.4.50.0040.00016.18
7.4.40.0080.00916.26
7.4.30.0100.00716.32
7.4.00.0070.00715.09
7.3.330.0020.00312.97
7.3.320.0000.00712.97
7.3.310.0070.00016.20
7.3.300.0070.00015.97
7.3.290.0080.00916.19
7.3.280.0060.00916.13
7.3.270.0100.01417.40
7.3.260.0070.01016.14
7.3.250.0110.00616.27
7.3.240.0030.01316.51
7.3.230.0090.00616.39
7.3.210.0090.00916.23
7.3.200.0040.01316.51
7.3.190.0070.01016.16
7.3.180.0040.01516.17
7.3.170.0100.00716.47
7.3.160.0130.00316.27
7.2.330.0120.00816.22
7.2.320.0140.00716.57
7.2.310.0090.01216.34
7.2.300.0090.01116.24
7.2.290.0130.00316.48
7.1.200.0110.00415.78
7.1.70.0040.00416.91
7.1.60.0060.01019.32
7.1.50.0090.01216.93
7.1.00.0070.07322.27
7.0.200.0000.00816.42
7.0.140.0030.07722.12
7.0.60.0070.08320.07
7.0.50.0070.05017.80
7.0.40.0070.08720.10
7.0.30.0300.04020.09
7.0.20.0230.08020.04
7.0.10.0100.08720.16
7.0.00.0030.04020.19
5.6.280.0000.07321.09
5.6.210.0000.05020.66
5.6.200.0070.03718.15
5.6.190.0100.08320.57
5.6.180.0470.08020.59
5.6.170.0370.07720.45
5.6.160.0100.04020.41
5.6.150.0100.07718.18
5.6.140.0100.04318.13
5.6.130.0170.07718.11
5.6.120.0030.07021.01
5.6.110.0130.07721.05
5.6.100.0070.08320.98
5.6.90.0130.07320.97
5.6.80.0000.07020.36
5.5.350.0170.08320.44
5.5.340.0130.07317.92
5.5.330.0030.08320.43
5.5.320.0230.06320.20
5.5.310.0330.04320.30
5.5.300.0070.08018.00
5.5.290.0030.04017.95
5.5.280.0000.04320.98
5.5.270.0070.06720.74
5.5.260.0130.07720.79
5.5.250.0030.04320.54
5.5.240.0270.07020.27
5.4.450.1170.04019.26
5.4.440.0200.05319.41
5.4.430.0200.05019.57
5.4.420.0630.00019.27
5.4.410.0630.00019.21
5.4.400.0630.00019.19
5.4.390.0630.00019.15
5.4.380.0630.00019.05
5.4.370.0600.00019.13
5.4.360.0600.00019.09
5.4.350.0630.00019.20
5.4.340.0630.00019.06
5.4.320.0080.03912.46
5.4.310.0070.04612.45
5.4.300.0080.04012.45
5.4.290.0040.04012.45
5.4.280.0070.04012.35
5.4.270.0050.03612.35
5.4.260.0100.03812.35
5.4.250.0070.03512.35
5.4.240.0040.03612.35
5.4.230.0070.03612.34
5.4.220.0060.03712.34
5.4.210.0040.04612.34
5.4.200.0040.04512.34
5.4.190.0060.04012.34
5.4.180.0060.03412.34
5.4.170.0040.03712.35
5.4.160.0060.03612.34
5.4.150.0100.04012.34
5.4.140.0060.04212.02
5.4.130.0030.03812.01
5.4.120.0040.03911.97
5.4.110.0070.03311.97
5.4.100.0060.04011.97
5.4.90.0060.04211.97
5.4.80.0050.03711.96
5.4.70.0060.04011.96
5.4.60.0080.03711.96
5.4.50.0010.03911.96
5.4.40.0050.03511.95
5.4.30.0040.04011.95
5.4.20.0040.04111.95
5.4.10.0080.03111.95
5.4.00.0040.03711.44
5.3.290.0050.03912.80
5.3.280.0070.03512.71
5.3.270.0030.04612.73
5.3.260.0060.03812.72
5.3.250.0050.03812.71
5.3.240.0070.03512.72
5.3.230.0070.03812.71
5.3.220.0060.03712.68
5.3.210.0030.04112.68
5.3.200.0080.03412.68
5.3.190.0080.03412.67
5.3.180.0080.03312.67
5.3.170.0040.03712.67
5.3.160.0050.03712.67
5.3.150.0060.04012.68
5.3.140.0020.03912.66
5.3.130.0050.04312.66
5.3.120.0060.04512.66
5.3.110.0040.04212.66
5.3.100.0070.03412.12
5.3.90.0040.03812.08
5.3.80.0060.03512.07
5.3.70.0040.03612.08
5.3.60.0040.03712.06
5.3.50.0040.03712.00
5.3.40.0060.03512.00
5.3.30.0050.03411.95
5.3.20.0050.03411.72
5.3.10.0020.03811.69
5.3.00.0040.03711.68
5.2.170.0070.0359.18
5.2.160.0030.0319.18
5.2.150.0020.0339.18
5.2.140.0050.0299.17
5.2.130.0050.0279.13
5.2.120.0040.0279.13
5.2.110.0040.0289.14
5.2.100.0040.0289.14
5.2.90.0040.0299.14
5.2.80.0060.0279.13
5.2.70.0060.0289.14
5.2.60.0040.0309.09
5.2.50.0050.0299.06
5.2.40.0060.0279.03
5.2.30.0030.0319.01
5.2.20.0060.0279.00
5.2.10.0050.0328.92
5.2.00.0020.0318.78
5.1.60.0040.0278.06
5.1.50.0020.0278.05
5.1.40.0040.0248.04
5.1.30.0060.0248.39
5.1.20.0040.0278.41
5.1.10.0030.0268.13
5.1.00.0040.0258.14
5.0.50.0010.0266.62
5.0.40.0030.0196.48
5.0.30.0020.0326.28
5.0.20.0070.0176.26
5.0.10.0030.0206.23
5.0.00.0060.0286.23
4.4.90.0030.0154.78
4.4.80.0010.0164.76
4.4.70.0040.0144.75
4.4.60.0050.0134.75
4.4.50.0030.0184.77
4.4.40.0050.0234.71
4.4.30.0060.0184.75
4.4.20.0020.0204.84
4.4.10.0020.0184.85
4.4.00.0020.0254.76
4.3.110.0010.0174.67
4.3.100.0040.0134.66
4.3.90.0030.0164.63
4.3.80.0030.0244.59
4.3.70.0060.0114.63
4.3.60.0020.0154.62
4.3.50.0040.0144.63
4.3.40.0020.0244.54
4.3.30.0010.0173.28
4.3.20.0020.0163.26
4.3.10.0020.0153.22
4.3.00.0030.01713.28

preferences:
43.48 ms | 401 KiB | 5 Q