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.0
2016-01-01 13:52:37
Output for 7.1.5
2016-01-01 13:52:38