3v4l.org

run code in 300+ PHP versions simultaneously
<?php //var_dump("hej " . (null ? "true" : "false") . " då"); header(Location: 'http://www.sl.se');
Output for 8.1.23 - 8.1.27, 8.2.10 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught Error: Unknown named parameter $Location in /in/mOsGf:4 Stack trace: #0 {main} thrown in /in/mOsGf on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.23
Parse error: syntax error, unexpected ':' in /in/mOsGf on line 4
Process exited with code 255.

preferences:
81.86 ms | 401 KiB | 76 Q