3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class FloodableInterface { public function isFlooded(int $height) : bool; }
Output for 7.0.0
Fatal error: Non-abstract method FloodableInterface::isFlooded() must contain body in /in/nmW4M on line 6
Process exited with code 255.
Output for 5.3.20 - 5.6.16
Parse error: syntax error, unexpected ':', expecting ';' or '{' in /in/nmW4M on line 6
Process exited with code 255.