3v4l.org

run code in 200+ php & hhvm versions
<?php function answer(): int { return 42; } answer();
based on HV0QI
Output for hhvm-3.12.14 - 3.21.0, 7.0.0 - 7.2.6
Output for 5.5.0 - 5.6.30
Parse error: syntax error, unexpected ':', expecting '{' in /in/Qoic7 on line 3
Process exited with code 255.