3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = new Test(); echo $test->send('', ''); class Test { public function send(string $to, string $message): string { return "sent"; } }
based on DGJXH
Output for 7.0.0 - 7.3.0rc3
sent
Output for 5.6.0 - 5.6.25
Parse error: syntax error, unexpected ':', expecting ';' or '{' in /in/FZSYI on line 9
Process exited with code 255.