3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(strtotime('0001-01-01T00:00:00')); var_dump(date('Y-m-d', strtotime('0001-01-01T00:00:00'))); exit;
Output for 5.2.6 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
int(-62135597972) string(10) "0001-01-01"
Output for 5.1.0 - 5.2.5
bool(false) string(10) "1970-01-01"
Output for 5.0.0 - 5.0.5
int(978303600) string(10) "2001-01-01"
Output for 4.3.5 - 4.4.9
int(978332400) string(10) "2001-01-01"
Output for 4.3.0 - 4.3.4
int(978282000) string(10) "2000-12-31"