3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = new DateTime("0000-00-00 00:00:00"); echo($d->format('Y-m-d H:i:s'));
Output for 5.3.29 - 7.2.0
-0001-11-30 00:00:00
Output for 4.3.0
Fatal error: Cannot instantiate non-existent class: datetime in /in/jRd0k on line 2