3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump("Y-m-d", date(strtotime("2014.01.01"))); var_dump("Y-m-d", date(strtotime("2014-01-01")));
Output for 5.1.3 - 7.1.0
string(5) "Y-m-d" string(0) "" string(5) "Y-m-d" string(10) "1388530800"
Output for 5.1.0 - 5.1.2
string(5) "Y-m-d" string(10) "1394651640" string(5) "Y-m-d" string(10) "1388530800"
Output for 4.3.0 - 5.0.5
string(5) "Y-m-d" string(2) "-1" string(5) "Y-m-d" string(10) "1388530800"