3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(date('m/d/Y', strtotime('0000-00-00')), date('m/d/Y', strtotime(false)), date('m/d/Y', strtotime(null)));
Output for 5.2.6 - 7.2.0
string(11) "11/30/-0001" string(10) "01/01/1970" string(10) "01/01/1970"
Output for 5.2.4 - 5.2.5
string(10) "01/01/1970" string(10) "01/01/1970" string(10) "01/01/1970"
Output for 5.1.2 - 5.2.3
string(10) "11/30/1999" string(10) "01/01/1970" string(10) "01/01/1970"
Output for 5.1.0 - 5.1.1
string(10) "11/30/1999" string(10) "02/27/2013" string(10) "02/27/2013"
Output for 5.0.1 - 5.0.5
Warning: strtotime(): Called with an empty time parameter. in /in/KgMMq on line 2 Warning: strtotime(): Called with an empty time parameter. in /in/KgMMq on line 2 string(10) "11/30/1999" string(10) "01/01/1970" string(10) "01/01/1970"
Output for 4.3.2 - 5.0.0
Notice: strtotime(): Called with empty time parameter in /in/KgMMq on line 2 Notice: strtotime(): Called with empty time parameter in /in/KgMMq on line 2 string(10) "11/30/1999" string(10) "02/27/2013" string(10) "02/27/2013"
Output for 4.3.0 - 4.3.1
Notice: strtotime() [http://www.php.net/function.strtotime]: Called with empty time parameter in /in/KgMMq on line 2 Notice: strtotime() [http://www.php.net/function.strtotime]: Called with empty time parameter in /in/KgMMq on line 2 string(10) "11/30/1999" string(10) "02/27/2013" string(10) "02/27/2013"