3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface Foo { public function getFoo() : string; } class Bar { public function __construct(Foo $foo) {} }
based on tmLq4
Output for 7.0.0 - 7.2.6
Output for 5.6.0 - 5.6.24
Parse error: syntax error, unexpected ':', expecting ';' or '{' in /in/7jg8b on line 4
Process exited with code 255.