3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function bla(): int { $a = []; return (int)($a['foo'] ?? 0); } var_dump(bla());
Output for hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.3.0rc3
int(0)
Output for 5.6.30
Parse error: syntax error, unexpected ':', expecting '{' in /in/3DS2q on line 3
Process exited with code 255.