3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?hh function foo(int $x): int { return 0.0; } foo(0.0);
based on uJpXm
Output for 5.4.34 - 5.4.35
Parse error: syntax error, unexpected 'function' (T_FUNCTION) in /in/K4PUN on line 3
Process exited with code 255.
Output for 5.4.0 - 5.4.32
<?hh function foo(int $x): int { return 0.0; } foo(0.0);