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) == 0) ? $time : strtotime('last monday', $time));
based on U48l0
Output for 4.3.0 - 7.2.0
14:11:03 2015-05-03 14:11:03 2015-05-03