3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo substr("AAAAB", 0, -2);
based on Dji3s

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.1.70.0100.00317.04
7.1.60.0070.01019.32
7.1.50.0150.01516.70
7.1.00.0030.07722.28
7.0.200.0000.01016.66
7.0.140.0070.06722.01
7.0.60.0070.04019.99
7.0.50.0070.06717.80
7.0.40.0030.04320.04
7.0.30.0430.06320.09
7.0.20.0270.05020.16
7.0.10.0000.09320.00
7.0.00.0070.04320.11
5.6.280.0170.06320.97
5.6.210.0130.07020.75
5.6.200.0070.04318.08
5.6.190.0100.05020.35
5.6.180.0330.07020.64
5.6.170.0270.08020.62
5.6.160.0130.04720.46
5.6.150.0030.08018.07
5.6.140.0100.05718.18
5.6.130.0100.08318.13
5.6.120.0100.03720.77
5.6.110.0030.08321.12
5.6.100.0130.08021.00
5.6.90.0030.04021.12
5.6.80.0030.08320.52
5.5.350.0200.06720.37
5.5.340.0070.08317.92
5.5.330.0070.05320.28
5.5.320.0430.07320.30
5.5.310.0270.07720.16
5.5.300.0030.08317.98
5.5.290.0030.04017.96
5.5.280.0070.07020.84
5.5.270.0130.07720.95
5.5.260.0100.06320.86
5.5.250.0130.03320.78
5.5.240.0200.07720.34
5.4.450.0300.05719.09
5.4.440.0700.04719.52
5.4.430.0370.04019.45
5.4.420.0700.00019.25
5.4.410.0630.00019.52
5.4.400.0600.00019.18
5.4.390.0630.00019.00
5.4.380.0630.00019.12
5.4.370.0630.00019.04
5.4.360.0600.00019.05
5.4.350.0630.00019.08
5.4.340.0050.03911.97
5.4.320.0100.03312.45
5.4.310.0030.04212.45
5.4.300.0060.03712.45
5.4.290.0060.03912.45
5.4.280.0090.04112.35
5.4.270.0090.04312.34
5.4.260.0080.05212.35
5.4.250.0120.04412.34
5.4.240.0080.05112.35
5.4.230.0100.04912.34
5.4.220.0110.04712.34
5.4.210.0080.04812.34
5.4.200.0110.04412.34
5.4.190.0050.03712.33
5.4.180.0070.04712.33
5.4.170.0080.03512.35
5.4.160.0060.03612.34
5.4.150.0060.04412.34
5.4.140.0050.04412.02
5.4.130.0050.04612.01
5.4.120.0060.03411.97
5.4.110.0040.03811.96
5.4.100.0060.03611.96
5.4.90.0050.03811.96
5.4.80.0040.03911.96
5.4.70.0070.03611.96
5.4.60.0060.04711.96
5.4.50.0060.03811.96
5.4.40.0080.03511.95
5.4.30.0060.03511.95
5.4.20.0040.03811.94
5.4.10.0020.03911.95
5.4.00.0070.04111.44
5.3.290.0070.04012.80
5.3.280.0050.04012.71
5.3.270.0050.04412.73
5.3.260.0060.04712.72
5.3.250.0060.04412.72
5.3.240.0100.03712.72
5.3.230.0080.03912.70
5.3.220.0040.04512.68
5.3.210.0080.04012.68
5.3.200.0160.07612.68
5.3.190.0070.06812.68
5.3.180.0140.05312.67
5.3.170.0040.03912.67
5.3.160.0080.03512.67
5.3.150.0050.03912.67
5.3.140.0060.03812.66
5.3.130.0090.04612.66
5.3.120.0120.04912.66
5.3.110.0090.04012.66
5.3.100.0100.04412.12
5.3.90.0070.04412.08
5.3.80.0070.04212.07
5.3.70.0070.04412.08
5.3.60.0090.03912.07
5.3.50.0110.03612.00
5.3.40.0080.04512.00
5.3.30.0050.04011.94
5.3.20.0080.03511.72
5.3.10.0020.04011.68
5.3.00.0040.04211.68
5.2.170.0040.0329.17
5.2.160.0110.0379.18
5.2.150.0070.0289.18
5.2.140.0050.0309.17
5.2.130.0050.0299.13
5.2.120.0040.0319.13
5.2.110.0050.0349.13
5.2.100.0090.0369.13
5.2.90.0070.0339.13
5.2.80.0070.0299.13
5.2.70.0060.0319.13
5.2.60.0040.0329.09
5.2.50.0040.0319.05
5.2.40.0040.0299.03
5.2.30.0040.0319.00
5.2.20.0050.0308.99
5.2.10.0060.0298.91
5.2.00.0050.0388.77
5.1.60.0030.0278.06
5.1.50.0040.0288.06
5.1.40.0050.0268.04
5.1.30.0050.0348.39
5.1.20.0070.0398.41
5.1.10.0100.0408.13
5.1.00.0030.0348.13
5.0.50.0050.0206.61
5.0.40.0010.0226.47
5.0.30.0060.0356.29
5.0.20.0090.0276.26
5.0.10.0050.0266.23
5.0.00.0070.0356.22
4.4.90.0020.0194.78
4.4.80.0050.0204.76
4.4.70.0090.0174.75
4.4.60.0050.0184.75
4.4.50.0020.0174.77
4.4.40.0030.0254.71
4.4.30.0050.0164.76
4.4.20.0040.0154.84
4.4.10.0030.0164.85
4.4.00.0050.0254.76
4.3.110.0050.0144.67
4.3.100.0040.0164.66
4.3.90.0010.0164.63
4.3.80.0030.0264.59
4.3.70.0030.0144.63
4.3.60.0020.0174.63
4.3.50.0020.0194.62
4.3.40.0010.0324.54
4.3.30.0050.0163.28
4.3.20.0020.0183.25
4.3.10.0030.0153.21
4.3.00.0070.0109.84