3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(-1); function check(): int{ return null; } check();
based on aiqPY
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught TypeError: Return value of check() must be of the type integer, null returned in /in/VJTgV:5 Stack trace: #0 /in/VJTgV(7): check() #1 {main} thrown in /in/VJTgV on line 5
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Parse error: syntax error, unexpected ':', expecting '{' in /in/VJTgV on line 4
Process exited with code 255.