3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = @mktime(0, 0, 0, 3, 31, 2014, 0); var_dump($a); var_dump(date('Y-m-d H:i:s', $a)); $b = @mktime(0, 0, 0, 3, 30, 2014, 0); var_dump($b); var_dump(date('Y-m-d H:i:s', $b)); var_dump($a - $b);
Output for 7.0.0 - 7.1.0
bool(false) string(19) "1970-01-01 01:00:00" bool(false) string(19) "1970-01-01 01:00:00" int(0)
Output for 4.3.0 - 5.6.28
int(1396220400) string(19) "2014-03-31 01:00:00" int(1396134000) string(19) "2014-03-30 00:00:00" int(86400)