3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $todayDate = date("2011-01-31"); //Add one day to today $dateOneMonthAdded = strtotime(date("Y-m-d", strtotime($todayDate)) . "+1 month"); echo "After adding one month: ".date('Y-m-d', $dateOneMonthAdded)."<br>";
Output for 4.3.0 - 7.1.10
After adding one month: 2011-03-03<br>