3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = floor(time()/86400)*86400; var_dump($a); var_dump(date('Y-m-d H:i:s', $a));
based on 4TGjI
Output for 4.3.0 - 7.2.0
float(1414022400) string(19) "2014-10-23 02:00:00"