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));
based on 4TGjI
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
float(1414022400) string(19) "2014-10-23 02:00:00"