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('w', $time) == 0) ? $time : strtotime('last sunday', $time);
based on 123sR
Output for 4.3.0 - 5.2.7, 5.2.9 - 7.2.0
14:07:38 2015-05-03 1430654858
Output for 5.2.8
14:07:37 2015-05-03 1430654857