3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function square(array $data): array { return array_map(function($d) { return $d ** 2; }, $data); }
Output for hhvm-3.18.5 - 3.22.0, 7.1.0 - 7.3.0rc3
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected ':', expecting '{' in /in/HtZB9 on line 3
Process exited with code 255.