3v4l.org

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