3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = strtotime("0000-00-00 00:00:00"); echo gmdate("Y-m-d", (int) $date);
based on e3k5V
Output for 5.2.6 - 7.1.0
-0001-11-29
Output for 5.2.4 - 5.2.5
1970-01-01
Output for 4.3.0 - 5.2.3
1999-11-29