3v4l.org

run code in 200+ PHP versions simultaneously
<?php echo (new DateTime())->format('Y-m-d-H'));
Output for 7.4.0 - 7.4.1
Parse error: syntax error, unexpected ')', expecting ';' or ',' in /in/aCbLV on line 3
Process exited with code 255.
Output for 7.2.0 - 7.3.13
Parse error: syntax error, unexpected ')', expecting ',' or ';' in /in/aCbLV on line 3
Process exited with code 255.