3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "2015-10-31"; echo date("Y-m-01", strtotime($a)); echo date("Y-m-d", strtotime($a."+1 month"));
based on EW6vv
Output for 5.4.0 - 7.3.0rc4
2015-10-012015-12-01