3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $calcul = strtotime("today") - strtotime("12-09-2013"); echo $calcul; //echo strftime("%d-%m-%Y", $calcul) . '<br />'; echo strftime("%d-%m-%Y", strtotime("today"));
Output for 5.6.28, 7.0.12 - 7.1.0
25920015-09-2013
Output for 7.0.6
8328960003-05-2016
Output for 5.1.3 - 5.2.17, 5.5.0 - 5.5.34, 5.6.0 - 5.6.20, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.5
8138880011-04-2016
Output for 5.6.21
8320320002-05-2016
Output for 5.5.35
8493120022-05-2016
Output for 5.4.0 - 5.4.45
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/vXfol on line 2 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/vXfol on line 2 81388800 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/vXfol on line 8 Warning: strftime(): 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/vXfol on line 8 11-04-2016
Output for 5.3.0 - 5.3.29
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/vXfol on line 2 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/vXfol on line 2 81388800 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/vXfol on line 8 Warning: strftime(): 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/vXfol on line 8 11-04-2016
Output for 5.1.0 - 5.1.2
146032560011-04-2016
Output for 4.3.9 - 4.4.0, 5.0.3 - 5.0.5
-5988199411-04-2016
Output for 5.0.0 - 5.0.2
-5996520011-04-2016
Output for 4.4.7 - 4.4.9
-5988199711-04-2016
Output for 4.4.3 - 4.4.6
-5988199611-04-2016
Output for 4.4.1 - 4.4.2
-5988199511-04-2016
Output for 4.3.2 - 4.3.8
-5988199311-04-2016
Output for 4.3.0 - 4.3.1
-5988199211-04-2016