3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo date('Y-m-d'). "\r\n"; echo DateTime().format('Y-m-d'). "\r\n";
based on G9qUY
Output for 7.0.0 - 7.2.0
2015-10-09 Fatal error: Uncaught Error: Call to undefined function DateTime() in /in/7WFYc:3 Stack trace: #0 {main} thrown in /in/7WFYc on line 3
Process exited with code 255.
Output for 5.4.0 - 5.6.28
2015-10-09 Fatal error: Call to undefined function DateTime() in /in/7WFYc on line 3
Process exited with code 255.