3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo{ function method($a){ } } class Bar extends Foo{ function method(){ } }
based on E4Em5

Here you find the average performance (time & memory) of each version. A greyed 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.00.0060.00619.29
7.1.70.0000.00816.68
7.1.60.0040.01116.86
7.1.50.0040.01816.77
7.1.40.0130.01034.08
7.1.30.0330.01034.39
7.1.20.0200.00734.57
7.1.10.0000.02016.23
7.1.00.0030.01016.36
7.0.200.0090.00616.72
7.0.180.0030.01015.95
7.0.170.0070.00315.90
7.0.160.0030.01315.99
7.0.150.0070.00715.83
7.0.140.0030.01016.02
7.0.130.0070.00716.14
7.0.120.0070.00316.39
7.0.110.0000.01016.04
7.0.100.0000.01016.02
7.0.90.0070.00716.16
7.0.80.0000.01016.10
7.0.70.0000.01015.93
7.0.60.0030.00715.80
7.0.50.0000.01016.08
7.0.40.0030.00716.20
7.0.30.0000.01016.26
7.0.20.0030.00716.06
7.0.10.0030.00716.05
7.0.00.0030.00716.20
hhvm-3.17.30.0730.18788.83
hhvm-3.15.40.0530.16386.23
hhvm-3.12.140.0600.15796.52
5.6.300.0170.05720.67
5.6.290.0200.05320.56
5.6.280.0130.05320.65
5.6.270.0000.06320.89
5.6.260.0100.05320.82
5.6.250.0170.04720.64
5.6.240.0070.06720.84
5.6.230.0100.06720.82
5.6.220.0100.05320.77
5.6.210.0030.06320.77
5.6.200.0100.06020.64
5.6.190.0100.05320.80
5.6.180.0130.05720.78
5.6.170.0070.06020.79
5.6.160.0100.05720.63
5.6.150.0100.05720.82
5.6.140.0230.04320.64
5.6.130.0100.06020.74
5.6.120.0100.06320.60
5.6.110.0100.07320.77
5.6.100.0030.07020.59
5.6.90.0000.06020.70
5.6.80.0100.05319.97
5.6.70.0100.05019.99
5.6.60.0000.06020.20
5.6.50.0100.07719.98
5.6.40.0130.05019.98
5.6.30.0070.06320.24
5.6.20.0030.06020.15
5.6.10.0230.04720.07
5.6.00.0070.05320.12