3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface Asd { public function qwerty(int $q): array; } class Qwertyasd implements Asd { public function qwerty($q): array { return 123; } }
based on fas7K
Output for 7.2.0
Output for 7.0.0 - 7.1.10
Fatal error: Declaration of Qwertyasd::qwerty($q): array must be compatible with Asd::qwerty(int $q): array in /in/dr7DB on line 8
Process exited with code 255.
Output for 5.3.22 - 5.6.28
Parse error: syntax error, unexpected ':', expecting ';' or '{' in /in/dr7DB on line 5
Process exited with code 255.