3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface ConfigurationProvider { public function getConfig() : array; } final class ConfigurationProviderNonImplementing { public function getConfig() { return []; } } $provider = new ConfigurationProviderNonImplementing(); var_dump(! $provider instanceof ConfigProviderInterface && ! is_callable([$provider, 'getConfig']));
Output for hhvm-3.15.4, 7.0.0 - 7.3.1
bool(false)
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected ':', expecting ';' or '{' in /in/IUSPG on line 5
Process exited with code 255.