3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = strtotime('01.01.2008'); echo date('Y-m-d', mktime(0, 0, 0, -2, 1, date("Y", $date)));
based on J1KHo
Output for 5.1.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2007-10-01
Output for 4.3.0 - 5.0.5
1969-10-01