3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
t<?php echo strtotime('2014-03-05 02:00:00')."\n"; echo strtotime('next day', '2014-03-05 02:00:00')."\n"; echo strtotime('next Sunday', '2014-03-05 02:00:00')."\n";
Output for 5.5.0 - 7.1.0
t1393981200 Notice: A non well formed numeric value encountered in /in/O5klI on line 3 88414 Notice: A non well formed numeric value encountered in /in/O5klI on line 4 255600
Output for 5.4.0 - 5.4.45
t 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/O5klI on line 2 1393984800 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/O5klI on line 3 88414 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/O5klI on line 4 259200
Output for 5.3.0 - 5.3.29
t 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/O5klI on line 2 1393981200 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/O5klI on line 3 88414 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/O5klI on line 4 255600
Output for 4.4.0 - 4.4.9, 5.0.5 - 5.2.17
t1393981200 88414 255600
Output for 4.3.0 - 4.3.11, 5.0.3 - 5.0.4
t1393981200 174814 860400
Output for 5.0.0 - 5.0.2
t1393981200 169200 860400