3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = new DateTime('now', new DateTimeZone('Europe/Athens')); $d->modify('previous sunday'); $d->setTime(0, 0, 0); echo $d->format('j/n/Y H:i:s');
based on gEdKZ
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
25/6/2017 00:00:00