3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function asdf(): array{ return; }
based on rBQMr
Output for 7.1.0 - 7.2.0
Fatal error: A function with return type must return a value in /in/nd7fB on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.20
Output for 5.3.20 - 5.6.21
Parse error: syntax error, unexpected ':', expecting '{' in /in/nd7fB on line 2
Process exited with code 255.