3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo date("Y-m-01 H:i:s", strtotime("+2 months"));
based on XXYod
Output for 5.5.0 - 7.1.0, 7.1.6 - 7.2.2, 7.2.4 - 7.3.1
2016-01-01 13:52:37
Output for 7.1.5, 7.2.3
2016-01-01 13:52:38