3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = mktime(0, 0, 0, 3, 31, 2014); var_dump($a); var_dump(date('Y-m-d H:i:s', $a)); $b = mktime(0, 0, 0, 3, 30, 2014); var_dump($b); var_dump(date('Y-m-d H:i:s', $b)); var_dump($a - $b);
Output for 4.3.0 - 4.3.4, 4.3.6 - 7.1.0
int(1396216800) string(19) "2014-03-31 00:00:00" int(1396134000) string(19) "2014-03-30 00:00:00" int(82800)
Output for 4.3.5
int(1396216800) string(19) "2014-03-31 00:00:00" int(1396137600) string(19) "2014-03-30 01:00:00" int(79200)