3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foobar(): int { return 1.2; } echo foobar();
based on Uq3Gn
Output for 7.0.0 - 7.3.0rc4
1
Output for 5.6.0 - 5.6.23
Parse error: syntax error, unexpected ':', expecting '{' in /in/Zi9uX on line 3
Process exited with code 255.