3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(): int { if (false) { return; } }
based on 5Mf4T
Output for 7.1.0 - 7.1.15, 7.2.0 - 7.2.3
Fatal error: A function with return type must return a value in /in/bsJkj on line 5
Process exited with code 255.
Output for 7.0.0 - 7.0.27