3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $firstDeliveryDate = new \DateTime('2017-02-10T00:00:00Z'); $changeFrom = clone $firstDeliveryDate; $changeFrom->modify('Monday this week'); echo $changeFrom->format('Y-m-d') . PHP_EOL; echo $changeFrom->format('c') . PHP_EOL;
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0beta1
2017-02-06 2017-02-06T00:00:00+00:00