3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface ConfigurationProvider { public function getConfig() : array; } final class ConfigurationProviderImplementing implements ConfigurationProvider { public function getConfig() { return []; } } $provider = new ConfigurationProviderNonImplementing(); var_dump(! $provider instanceof ConfigProviderInterface && ! is_callable([$provider, 'getConfig']));
based on IUSPG

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.80.0100.00316.58
7.2.60.0060.01016.51
7.2.00.0060.00619.41
7.1.200.0110.00415.74
7.1.100.0030.00618.15
7.1.70.0090.00316.74
7.1.60.0130.01635.14
7.1.50.0150.01234.81
7.1.40.0170.01034.41
7.1.30.0130.01634.33
7.1.20.0170.01034.36
7.1.10.0030.01016.49
7.1.00.0110.00416.71
7.0.200.0040.01016.61
7.0.190.0040.00916.52
7.0.180.0090.00616.28
7.0.170.0140.00016.04
7.0.160.0060.00616.14
7.0.150.0030.01016.00
7.0.140.0000.01416.22
7.0.130.0040.01116.41
7.0.120.0100.00316.56
7.0.110.0040.01116.05
7.0.100.0030.00916.16
7.0.90.0030.01016.22
7.0.80.0000.01316.24
7.0.70.0040.00916.18
7.0.60.0000.01215.91
7.0.50.0000.01316.15
7.0.40.0030.01016.12
7.0.30.0080.00616.27
7.0.20.0100.00316.31
7.0.10.0030.01016.26
7.0.00.0030.00916.18
hhvm-3.15.40.0600.15188.45
5.6.300.0190.04820.84
5.6.290.0100.05620.76
5.6.280.0100.05520.95
5.6.270.0070.05620.75
5.6.260.0030.05920.80
5.6.250.0130.05120.77
5.6.240.0060.05720.84
5.6.230.0100.05720.85
5.6.220.0060.06020.84
5.6.210.0100.05620.95
5.6.200.0070.06220.80
5.6.190.0030.06820.83
5.6.180.0130.05220.72
5.6.170.0130.04920.73
5.6.160.0160.05220.73
5.6.150.0070.05620.76
5.6.140.0070.06520.91
5.6.130.0160.07220.94
5.6.120.0100.05520.88
5.6.110.0070.05920.72
5.6.100.0030.06120.71
5.6.90.0130.04820.90
5.6.80.0070.05220.27
5.6.70.0130.04520.26
5.6.60.0070.06020.09
5.6.50.0100.05120.08
5.6.40.0030.05720.29
5.6.30.0100.05220.10
5.6.20.0130.05020.05
5.6.10.0260.03320.07
5.6.00.0100.05220.21