3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo substr("Hello PHP7, lets not bother too much into performance ;-)", 6, 4);
based on gVVhf

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.2.60.0040.01116.51
7.2.00.0000.01719.33
7.1.200.0080.00415.73
7.1.100.0060.00617.69
7.1.70.0040.00416.91
7.1.60.0090.01519.59
7.1.50.0100.01616.88
7.1.00.0070.07322.45
7.0.200.0000.00716.73
7.0.60.0030.05321.77
7.0.50.0100.06717.82
7.0.40.0000.04720.04
7.0.30.0270.08320.06
7.0.20.0230.04320.04
7.0.10.0100.07020.02
7.0.00.0130.07320.02
5.6.280.0030.07320.77
5.6.210.0030.07020.62
5.6.200.0100.07718.22
5.6.190.0100.04720.47
5.6.180.0200.08320.64
5.6.170.0270.08020.51
5.6.160.0070.04020.52
5.6.150.0100.04718.19
5.6.140.0070.05018.15
5.6.130.0130.07318.11
5.6.120.0030.04720.89
5.6.110.0100.05721.00
5.6.100.0170.07021.10
5.6.90.0270.07020.98
5.6.80.0130.05720.48
5.5.350.0030.08720.40
5.5.340.0030.07718.01
5.5.330.0030.08720.14
5.5.320.0230.07020.24
5.5.310.0100.09020.34
5.5.300.0070.08017.96
5.5.290.0030.04317.91
5.5.280.0130.08020.86
5.5.270.0030.04720.94
5.5.260.0100.04020.86
5.5.250.0130.07320.78
5.5.240.0170.08020.14
5.4.450.0100.07319.41
5.4.440.0070.08019.29
5.4.430.0130.07019.41
5.4.420.0000.06019.39
5.4.410.0130.07019.37
5.4.400.0070.05318.79
5.4.390.0030.03718.91
5.4.380.0030.04718.94
5.4.370.0070.03319.21
5.4.360.0030.03719.18
5.4.350.0030.03719.18
5.4.340.0000.04019.18
5.4.320.0030.03718.79
5.4.310.0070.03718.91
5.4.300.0030.03718.93
5.4.290.0070.03318.78
5.4.280.0070.03318.79
5.4.270.0070.03319.19
5.4.260.0170.02319.08
5.4.250.0070.03319.17
5.4.240.0070.03319.14
5.4.230.0000.04719.17
5.4.220.0130.03719.11
5.4.210.0070.03318.96
5.4.200.0070.03319.13
5.4.190.0070.03319.13
5.4.180.0000.04019.13
5.4.170.0070.03319.13
5.4.160.0070.03319.15
5.4.150.0000.04019.05
5.4.140.0030.03316.33
5.4.130.0030.03316.33
5.4.120.0000.06016.43
5.4.110.0030.06016.40
5.4.100.0070.07716.27
5.4.90.0000.08016.34
5.4.80.0030.04716.39
5.4.70.0100.05016.59
5.4.60.0130.06716.25
5.4.50.0100.06316.25
5.4.40.0070.07316.21
5.4.30.0070.06016.30
5.4.20.0100.06716.20
5.4.10.0030.07716.24
5.4.00.0100.06015.63
5.3.290.0030.03714.54
5.3.280.0030.03714.52
5.3.270.0130.03714.55
5.3.260.0030.03714.39
5.3.250.0030.03714.53
5.3.240.0070.03314.54
5.3.230.0030.05314.38
5.3.220.0000.08014.49
5.3.210.0070.06314.49
5.3.200.0030.07714.49
5.3.190.0000.08014.51
5.3.180.0100.07314.49
5.3.170.0100.05014.45
5.3.160.0070.07314.52
5.3.150.0100.07314.34
5.3.140.0100.09014.56
5.3.130.0100.06014.47
5.3.120.0070.08014.33
5.3.110.0030.04314.55
5.3.100.0030.05713.82
5.3.90.0070.07313.93
5.3.80.0000.07713.99
5.3.70.0130.06313.96
5.3.60.0000.04313.92
5.3.50.0130.07013.78
5.3.40.0030.07013.87
5.3.30.0070.05313.72
5.3.20.0100.07013.61
5.3.10.0030.07713.47
5.3.00.0070.03713.56
5.2.170.0000.05711.11
5.2.160.0030.06311.30
5.2.150.0030.03011.09
5.2.140.0030.03311.02
5.2.130.0100.04711.10
5.2.120.0100.02710.95
5.2.110.0070.03311.02
5.2.100.0070.03011.03
5.2.90.0000.05311.00
5.2.80.0070.04011.02
5.2.70.0000.03311.19
5.2.60.0000.06010.98
5.2.50.0000.05310.91
5.2.40.0070.04011.07
5.2.30.0030.06010.87
5.2.20.0030.04010.88
5.2.10.0030.06010.84
5.2.00.0030.05710.70
5.1.60.0100.04710.01
5.1.50.0070.05310.05
5.1.40.0030.0409.95
5.1.30.0070.03310.33
5.1.20.0030.06010.30
5.1.10.0030.05710.03
5.1.00.0000.05710.11
5.0.50.0000.0479.40
5.0.40.0000.0239.40
5.0.30.0000.0539.40
5.0.20.0000.0339.40
5.0.10.0070.0439.40
5.0.00.0000.0739.40
4.4.90.0030.0139.40
4.4.80.0030.0379.40
4.4.70.0030.0239.40
4.4.60.0000.0279.40
4.4.50.0070.0309.40
4.4.40.0030.0279.40
4.4.30.0030.0279.40
4.4.20.0000.0409.40
4.4.10.0030.0339.40
4.4.00.0070.0339.40
4.3.110.0000.0179.40
4.3.100.0070.0309.40
4.3.90.0000.0179.40
4.3.80.0000.0279.40
4.3.70.0000.0339.40
4.3.60.0000.0279.40
4.3.50.0030.0179.40
4.3.40.0030.0509.40
4.3.30.0030.0279.40
4.3.20.0000.0239.40
4.3.10.0030.0379.40
4.3.00.0030.0279.40