3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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;
Output for 5.3.0 - 7.1.0
<br>###########2014-05-11
Output for 5.2.0 - 5.2.17
<br>###########2014-05-04
Output for 4.4.0 - 4.4.9, 5.0.5 - 5.1.6
<br>###########2014-05-09
Output for 4.3.0 - 4.3.11, 5.0.0 - 5.0.4
<br>###########2014-06-06