3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (new \DateTime())->format("Y-m-d H:i:s")); ?>
based on K4cu7
Output for 7.4.0 - 7.4.12
Parse error: syntax error, unexpected ')', expecting ';' or ',' in /in/kBIJk on line 2
Process exited with code 255.
Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.24
Parse error: syntax error, unexpected ')', expecting ',' or ';' in /in/kBIJk on line 2
Process exited with code 255.