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) ? $time : strtotime('last monday', $time));
based on KQYGk
Output for 4.3.0 - 7.2.0
14:13:21 2015-05-03 00:00:00 2015-04-27