3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hour = date('H'); $foo = mktime($hour); $bar = time('H'); var_dump(date('r', $foo), $hour, $bar, $foo);
based on TfHFd
Output for 5.6.28, 7.0.20 - 7.2.0
string(31) "Fri, 16 Oct 2015 19:48:52 +0200" string(2) "19" int(1445017732) int(1445017732)
Output for 5.4.0 - 5.6.23, 7.0.0 - 7.0.8
string(31) "Fri, 16 Oct 2015 19:48:51 +0200" string(2) "19" int(1445017731) int(1445017731)