3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo(float $bar) : int { return (int) $bar; } var_dump(foo(PHP_INT_MAX));
based on iSBt3
Output for hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0
int(-9223372036854775808)
Output for 5.6.0 - 5.6.38
Parse error: syntax error, unexpected ':', expecting '{' in /in/t7gce on line 3
Process exited with code 255.