3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hour = date('H', 0); $foo = mktime($hour); $bar = date('H'); var_dump(date('r', $foo), $hour, $bar, $foo, date('r', mktime(1445017797)));
based on d4PUN
Output for 5.6.28, 7.0.20 - 7.2.0
string(31) "Fri, 16 Oct 2015 01:51:39 +0200" string(2) "01" string(2) "19" int(1444953099) string(33) "Sun, 20 Aug 166862 21:51:39 +0100"
Output for 5.4.0 - 5.6.23, 7.0.0 - 7.0.8
string(31) "Fri, 16 Oct 2015 01:51:38 +0200" string(2) "01" string(2) "19" int(1444953098) string(33) "Sun, 20 Aug 166862 21:51:38 +0100"