3v4l.org

run code in 500+ PHP versions simultaneously
<?php function f(): null { return null; }
Output for 8.2.21 - 8.2.35, 8.3.0 - 8.3.36, 8.4.1 - 8.4.27, 8.5.0 - 8.5.12
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.34
Fatal error: Null can not be used as a standalone type in /in/LL9UI on line 3
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.21
Fatal error: Cannot use 'null' as class name as it is reserved in /in/LL9UI on line 3
Process exited with code 255.

preferences:
43.73 ms | 1514 KiB | 12 Q