3v4l.org

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

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.0080.00419.31
7.1.70.0000.00816.94
7.1.60.0110.00717.09
7.1.50.0100.01016.48
7.1.40.0230.00334.10
7.1.30.0230.01334.25
7.1.20.0130.01034.29
7.1.10.0070.00316.29
7.1.00.0030.01016.20
7.0.200.0030.01416.73
7.0.180.0030.00716.15
7.0.170.0030.01316.01
7.0.160.0070.00715.96
7.0.150.0070.00315.91
7.0.140.0070.00716.05
7.0.130.0070.00316.20
7.0.120.0000.01316.44
7.0.110.0070.00716.11
7.0.100.0030.01015.99
7.0.90.0000.01316.21
7.0.80.0000.01316.14
7.0.70.0030.01016.09
7.0.60.0000.01015.95
7.0.50.0000.01016.32
7.0.40.0000.01016.43
7.0.30.0000.01316.30
7.0.20.0030.01316.34
7.0.10.0000.01316.24
7.0.00.0070.01016.11
hhvm-3.17.30.0600.15798.43
hhvm-3.15.40.0430.14096.87
hhvm-3.12.140.0370.190107.98
5.6.300.0100.05020.59
5.6.290.0100.05020.61
5.6.280.0130.06020.94
5.6.270.0070.05720.70
5.6.260.0070.05720.71
5.6.250.0070.06020.69
5.6.240.0130.05320.88
5.6.230.0100.06020.75
5.6.220.0030.06020.86
5.6.210.0130.04720.82
5.6.200.0030.06020.90
5.6.190.0130.05020.90
5.6.180.0130.05720.80
5.6.170.0070.08020.91
5.6.160.0170.07320.77
5.6.150.0030.08020.64
5.6.140.0130.07320.64
5.6.130.0070.07020.84
5.6.120.0170.08020.76
5.6.110.0100.08020.64
5.6.100.0130.06720.78
5.6.90.0200.05020.74
5.6.80.0000.06320.03
5.6.70.0200.06020.02
5.6.60.0100.08020.13
5.6.50.0070.07320.18
5.6.40.0100.09320.21
5.6.30.0070.07720.26
5.6.20.0000.06719.99
5.6.10.0000.06720.17
5.6.00.0070.06720.17