3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = strtotime('01.02.2008'); echo date('Y-m-d', mktime(0, 0, 0, date("m", $date)-1, 1, date("Y", $date)));
based on eFJAZ
Output for 5.1.0 - 7.2.0
2008-01-01
Output for 4.3.0 - 5.0.5
1969-12-01