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
Warning: mktime() expects at most 6 parameters, 7 given in /in/uP78i on line 3 bool(false) string(19) "1970-01-01 01:00:00" Warning: mktime() expects at most 6 parameters, 7 given in /in/uP78i on line 4 bool(false) string(19) "1970-01-01 01:00:00" int(0)
Output for hhvm-3.10.0 - 3.12.0
Warning: mktime() expects at most 6 parameters, 7 given in /in/uP78i on line 3 NULL string(19) "1970-01-01 01:00:00" Warning: mktime() expects at most 6 parameters, 7 given in /in/uP78i on line 4 NULL string(19) "1970-01-01 01:00:00" int(0)
Output for 5.3.0 - 5.6.28
Deprecated: mktime(): The is_dst parameter is deprecated in /in/uP78i on line 3 int(1396220400) string(19) "2014-03-31 01:00:00" Deprecated: mktime(): The is_dst parameter is deprecated in /in/uP78i on line 4 int(1396134000) string(19) "2014-03-30 00:00:00" int(86400)
Output for 5.1.0 - 5.2.17
Strict Standards: mktime(): The is_dst parameter is deprecated in /in/uP78i on line 3 int(1396220400) string(19) "2014-03-31 01:00:00" Strict Standards: mktime(): The is_dst parameter is deprecated in /in/uP78i on line 4 int(1396134000) string(19) "2014-03-30 00:00:00" int(86400)
Output for 4.3.0 - 5.0.5
int(1396220400) string(19) "2014-03-31 01:00:00" int(1396134000) string(19) "2014-03-30 00:00:00" int(86400)