3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh function to_s(int $i): string { return (string) $i; } $i = 1; $s = 'test' . to_s($i); echo $s;
Output for 5.3.0 - 5.4.32
<?hh function to_s(int $i): string { return (string) $i; } $i = 1; $s = 'test' . to_s($i); echo $s;