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,0,6)); ?> </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.00718.18
8.3.50.0170.00321.82
8.3.40.0150.00018.84
8.3.30.0060.01118.91
8.3.20.0080.00020.09
8.3.10.0030.00620.23
8.3.00.0040.00419.00
8.2.180.0040.01116.38
8.2.170.0090.01222.96
8.2.160.0090.00920.39
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0070.00022.29
8.2.110.0070.00319.31
8.2.100.0080.00418.02
8.2.90.0040.00419.23
8.2.80.0050.00317.97
8.2.70.0070.00317.50
8.2.60.0000.00818.04
8.2.50.0080.00018.07
8.2.40.0040.00418.08
8.2.30.0100.00017.98
8.2.20.0040.00417.56
8.2.10.0050.00317.98
8.2.00.0040.00417.49
8.1.280.0040.01125.92
8.1.270.0030.00622.23
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0000.00919.53
8.1.230.0080.00419.16
8.1.220.0060.00317.74
8.1.210.0000.00718.77
8.1.200.0000.01017.23
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0000.00818.50
8.1.160.0000.00721.94
8.1.150.0000.00718.80
8.1.140.0030.00617.47
8.1.130.0030.00317.86
8.1.120.0070.00017.45
8.1.110.0050.00317.42
8.1.100.0040.00417.42
8.1.90.0030.00517.37
8.1.80.0070.00017.28
8.1.70.0030.00317.29
8.1.60.0030.00617.38
8.1.50.0000.00917.44
8.1.40.0050.00217.44
8.1.30.0030.00517.63
8.1.20.0040.00417.48
8.1.10.0040.00417.46
8.1.00.0020.00517.45
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0070.00018.43
8.0.270.0030.00317.16
8.0.260.0030.00317.20
8.0.250.0000.00616.79
8.0.240.0030.00316.90
8.0.230.0030.00316.88
8.0.220.0000.00716.84
8.0.210.0050.00216.69
8.0.200.0030.00316.89
8.0.190.0070.00316.79
8.0.180.0090.00316.67
8.0.170.0030.00516.73
8.0.160.0030.00316.77
8.0.150.0040.00416.68
8.0.140.0030.00416.67
8.0.130.0050.00013.24
8.0.120.0040.00416.84
8.0.110.0040.00416.81
8.0.100.0000.00716.68
8.0.90.0000.00716.71
8.0.80.0030.01216.80
8.0.70.0050.00216.85
8.0.60.0040.00316.75
8.0.50.0040.00416.80
8.0.30.0100.01016.99
8.0.20.0070.01317.40
8.0.10.0000.00716.82
8.0.00.0090.01216.86
7.4.330.0020.00215.00
7.4.320.0000.00616.43
7.4.300.0030.00316.47
7.4.290.0040.00416.32
7.4.280.0070.00016.35
7.4.270.0030.00316.53
7.4.260.0060.00316.52
7.4.250.0000.00716.32
7.4.240.0040.00416.39
7.4.230.0000.00816.32
7.4.220.0120.00616.41
7.4.210.0100.00716.63
7.4.200.0030.00316.55
7.4.160.0160.00616.33
7.4.150.0130.00917.40
7.4.140.0170.00617.86
7.4.130.0080.00916.42
7.4.120.0110.00916.43
7.4.110.0080.00816.45
7.4.100.0110.00716.45
7.4.90.0150.00316.44
7.4.80.0140.01019.37
7.4.70.0080.00816.48
7.4.60.0110.00916.62
7.4.50.0060.00316.41
7.4.40.0090.01216.61
7.4.30.0090.00916.48
7.4.00.0000.01214.77
7.3.330.0020.00212.96
7.3.320.0000.00612.88
7.3.310.0060.00316.06
7.3.300.0050.00216.11
7.3.290.0080.00616.17
7.3.280.0050.01016.18
7.3.270.0170.00617.40
7.3.260.0090.00916.44
7.3.250.0130.00516.33
7.3.240.0080.00816.43
7.3.230.0060.01016.39
7.3.210.0110.00616.41
7.3.200.0100.00619.39
7.3.190.0060.01116.42
7.3.180.0090.00716.38
7.3.170.0090.01216.27
7.3.160.0120.00416.16
7.2.330.0200.00016.25
7.2.320.0070.01016.29
7.2.310.0150.00316.51
7.2.300.0130.00316.32
7.2.290.0060.00916.40
7.2.00.0070.01419.31
7.1.100.0000.01017.67
7.1.70.0000.01017.06
7.1.60.0060.01919.32
7.1.50.0170.01016.80
7.1.00.0070.07322.44
7.0.200.0000.00916.59
7.0.140.0000.07322.10
7.0.60.0100.07319.93
7.0.50.0070.07717.86
7.0.40.0070.07019.90
7.0.30.0600.04320.00
7.0.20.0430.06320.09
7.0.10.0130.08020.19
7.0.00.0030.05020.29
5.6.280.0130.06021.15
5.6.210.0070.05320.71
5.6.200.0000.09018.12
5.6.190.0000.07720.41
5.6.180.3470.04720.45
5.6.170.0330.04720.71
5.6.160.0030.09020.70
5.6.150.0100.07018.11
5.6.140.0170.07018.11
5.6.130.0030.07718.10
5.6.120.0030.04020.98
5.6.110.0000.05320.96
5.6.100.0070.06721.03
5.6.90.0030.09020.97
5.6.80.0100.07720.52
5.6.70.0270.07720.34
5.5.350.0330.07020.30
5.5.340.0200.04317.96
5.5.330.0000.04320.40
5.5.320.0430.07320.19
5.5.310.0270.06720.20
5.5.300.0130.06717.98
5.5.290.0070.08318.02
5.5.280.0000.05720.77
5.5.270.0070.05020.95
5.5.260.0130.07720.64
5.5.250.0100.06720.54
5.5.240.0300.07320.18
5.4.450.0730.05319.63
5.4.440.1000.05719.55
5.4.430.0730.05019.48
5.4.420.0630.00019.48
5.4.410.0630.00019.30
5.4.400.0830.00019.39
5.4.390.0600.00019.05
5.4.380.0630.00019.26
5.4.370.0630.00019.07
5.4.360.0600.00019.05
5.4.350.0630.00019.05
5.4.340.0600.00019.13
5.4.320.0040.03812.46
5.4.310.0050.03912.46
5.4.300.0030.03812.45
5.4.290.0060.03712.45
5.4.280.0050.03512.35
5.4.270.0070.03312.35
5.4.260.0040.04012.35
5.4.250.0040.04012.35
5.4.240.0040.03812.35
5.4.230.0050.03812.34
5.4.220.0040.03712.34
5.4.210.0070.04412.34
5.4.200.0050.04212.34
5.4.190.0050.03712.34
5.4.180.0070.03812.34
5.4.170.0050.03612.35
5.4.160.0070.03312.34
5.4.150.0040.03612.34
5.4.140.0040.03712.02
5.4.130.0060.03412.02
5.4.120.0040.03611.97
5.4.110.0060.03411.96
5.4.100.0030.03811.96
5.4.90.0060.03611.97
5.4.80.0050.03711.97
5.4.70.0070.03311.96
5.4.60.0060.03411.96
5.4.50.0080.03211.96
5.4.40.0060.03411.95
5.4.30.0050.03611.95
5.4.20.0070.03911.95
5.4.10.0050.03511.95
5.4.00.0090.03211.44
5.3.290.0080.03812.80
5.3.280.0060.03912.71
5.3.270.0080.04212.73
5.3.260.0040.03912.71
5.3.250.0080.05212.72
5.3.240.0060.03712.72
5.3.230.0050.03812.71
5.3.220.0060.04012.68
5.3.210.0070.04312.68
5.3.200.0050.03712.68
5.3.190.0080.03612.68
5.3.180.0120.03712.67
5.3.170.0060.03612.67
5.3.160.0080.03912.68
5.3.150.0040.03912.67
5.3.140.0060.03612.66
5.3.130.0090.03612.65
5.3.120.0080.03912.66
5.3.110.0070.04412.66
5.3.100.0090.03412.12
5.3.90.0040.03812.08
5.3.80.0050.03712.08
5.3.70.0050.03712.07
5.3.60.0050.03712.07
5.3.50.0030.03812.00
5.3.40.0070.03612.00
5.3.30.0060.03511.95
5.3.20.0050.03911.72
5.3.10.0070.03311.69
5.3.00.0040.03811.68
5.2.170.0060.0289.18
5.2.160.0050.0299.18
5.2.150.0050.0309.18
5.2.140.0080.0279.17
5.2.130.0070.0269.14
5.2.120.0050.0279.13
5.2.110.0050.0289.14
5.2.100.0060.0269.14
5.2.90.0050.0299.14
5.2.80.0030.0319.14
5.2.70.0050.0309.14
5.2.60.0100.0329.09
5.2.50.0040.0309.05
5.2.40.0050.0299.03
5.2.30.0050.0299.01
5.2.20.0030.0309.00
5.2.10.0040.0288.92
5.2.00.0050.0288.78
5.1.60.0080.0218.06
5.1.50.0040.0268.05
5.1.40.0040.0248.04
5.1.30.0080.0248.39
5.1.20.0020.0288.41
5.1.10.0020.0288.13
5.1.00.0030.0308.14
5.0.50.0050.0186.61
5.0.40.0040.0186.47
5.0.30.0040.0306.29
5.0.20.0040.0196.26
5.0.10.0040.0196.23
5.0.00.0030.0326.23
4.4.90.0030.0154.78
4.4.80.0020.0224.75
4.4.70.0050.0164.75
4.4.60.0030.0154.75
4.4.50.0030.0154.77
4.4.40.0020.0264.70
4.4.30.0030.0164.76
4.4.20.0020.0174.85
4.4.10.0060.0134.85
4.4.00.0020.0264.76
4.3.110.0060.0204.67
4.3.100.0020.0174.67
4.3.90.0030.0154.63
4.3.80.0020.0254.58
4.3.70.0040.0144.63
4.3.60.0030.0144.63
4.3.50.0050.0144.63
4.3.40.0030.0234.54
4.3.30.0020.0163.29
4.3.20.0030.0183.25
4.3.10.0030.0213.22
4.3.00.0130.0237.18

preferences:
35.53 ms | 400 KiB | 5 Q