3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() : string { return 'foo'; return; }
Output for 7.3.0 - 7.3.26, 7.4.0 - 7.4.14, 8.0.0 - 8.0.1
Fatal error: A function with return type must return a value in /in/bZqWv on line 5
Process exited with code 255.