3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?hh class MyClass { public function alpha(): int { return 1; } public function beta(): string { return 'hi test'; } }
Output for 5.5.0 - 7.0.6
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/HZ7FO on line 2
Process exited with code 255.