3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo strtotime('Jan 1 1900 05:10:00:000AM'); echo "\n"; $dt = new DateTime("Jan 1 1900 05:10:00:000AM"); echo $dt->format('d/m/Y H:i:s'); echo "\n"; echo strtotime('Jan 1 2004 12:00:00:000AM');
based on XA6WB
Output for 7.0.0 - 7.1.0
-2208971372 Fatal error: Uncaught Error: Call to undefined function new DateTime() in /in/Wu3cC:5 Stack trace: #0 {main} thrown in /in/Wu3cC on line 5
Process exited with code 255.
Output for 5.3.0 - 5.6.28
-2208971372 Fatal error: Call to undefined function new DateTime() in /in/Wu3cC on line 5
Process exited with code 255.
Output for 5.1.0 - 5.2.17
Fatal error: Call to undefined function new DateTime() in /in/Wu3cC on line 5
Process exited with code 255.
Output for 5.0.0 - 5.0.5
-1 Fatal error: Call to undefined function new DateTime() in /in/Wu3cC on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
-1 Fatal error: Call to undefined function: new datetime() in /in/Wu3cC on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
-1 Fatal error: Call to undefined function: new datetime() in /in/Wu3cC on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
-1 Fatal error: Call to undefined function: new datetime() in /in/Wu3cC on line 5