3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = mktime(2, 1, 1, 3, 31, 2013, 1); var_dump($a); $b = strtotime('2013-03-31 02:01:01'); var_dump($b);
Output for 7.0.0 - 7.1.0
Warning: mktime() expects at most 6 parameters, 7 given in /in/3lpIY on line 2 bool(false) int(1364691661)
Output for hhvm-3.10.0 - 3.12.0
Warning: mktime() expects at most 6 parameters, 7 given in /in/3lpIY on line 2 NULL int(1364691661)
Output for 5.5.0 - 5.6.28
Deprecated: mktime(): The is_dst parameter is deprecated in /in/3lpIY on line 2 int(1364691661) int(1364691661)
Output for 5.4.0 - 5.4.45
Warning: mktime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /in/3lpIY on line 2 int(1364691661) Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /in/3lpIY on line 5 int(1364695261)
Output for 5.3.0 - 5.3.29
Warning: mktime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /in/3lpIY on line 2 int(1364691661) Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /in/3lpIY on line 5 int(1364691661)
Output for 5.1.0 - 5.2.17
int(1364691661) int(1364691661)
Output for 4.3.0 - 5.0.5
int(1364688061) int(1364691661)