3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $now = time(); echo date('d-m-Y H:i:s',$now),"\n"; $dayStart = ($now-86400) + ($now % 86400); echo date('d-m-Y H:i:s',$dayStart);
based on PC3UJ
Output for 4.3.0 - 7.3.0rc4
13-03-2015 13:32:46 13-03-2015 02:05:32