3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('Y-n-j')
Output for 8.0.0 - 8.0.10
Parse error: syntax error, unexpected end of file, expecting "," or ";" in /in/T5ERC on line 3
Process exited with code 255.
Output for 7.4.0 - 7.4.23
Parse error: syntax error, unexpected end of file, expecting ';' or ',' in /in/T5ERC on line 3
Process exited with code 255.
Output for 7.3.0 - 7.3.30
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/T5ERC on line 3
Process exited with code 255.

preferences:
25.14 ms | 458 KiB | 5 Q