3v4l.org

run code in 300+ PHP versions simultaneously
<?php $delidate = "2014-04-04"; $delivdate = strtotime($delidate); $deliveryDay = "Friday"; $monthlyDate = strtotime("first $deliveryDay Next month", $delivdate); $monthly = date("Y-m-d", $monthlyDate); echo "<br>###########".$monthly;

preferences:
41.83 ms | 402 KiB | 5 Q