3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo date("H:i:s Y-m-d", time()); echo "\n"; $time = time(); echo date("H:i:s Y-m-d",(date('w', $time) == 1) ? mktime(0, 0, 0, date('j'), date('n')) : strtotime('last sunday', $time));
based on 0XR2v
Output for 4.3.0 - 7.2.0
14:22:51 2015-05-03 00:00:00 2015-04-26