3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface Test { public function onSucces(); } class TestImplement implements Test { public function onSucces(): array { echo 'Hallo!'; return ['bla']; } } var_dump((new TestImplement())->onSucces());
Output for hhvm-3.15.4, 7.0.0 - 7.3.0beta1
Hallo!array(1) { [0]=> string(3) "bla" }
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected ':', expecting ';' or '{' in /in/hHNoe on line 8
Process exited with code 255.