3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(): ?string { return; } foo();
Output for 7.1.0 - 7.1.16, 7.2.0 - 7.2.4
Fatal error: A function with return type must return a value (did you mean "return null;" instead of "return;"?) in /in/ibp61 on line 5
Process exited with code 255.

preferences:
157.41 ms | 1424 KiB | 7 Q