3v4l.org

run code in 300+ PHP versions simultaneously
<?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>";

preferences:
30.7 ms | 402 KiB | 5 Q