3v4l.org

run code in 300+ PHP versions simultaneously
<?php $todayDate = date("Y-m-d"); //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:
42.74 ms | 402 KiB | 5 Q