3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(strtotime(null)); var_dump(date('c', 1352292895)); ?>
Output for 5.1.2 - 7.1.0
bool(false) string(25) "2012-11-07T13:54:55+01:00"
Output for 5.1.0 - 5.1.1
int(1352292988) string(25) "2012-11-07T13:54:55+01:00"
Output for 5.0.1 - 5.0.5
Warning: strtotime(): Called with an empty time parameter. in /in/Nmu0u on line 3 int(-1) string(25) "2012-11-07T13:54:55+01:00"
Output for 5.0.0
Notice: strtotime(): Called with empty time parameter in /in/Nmu0u on line 3 int(1352242800) string(25) "2012-11-07T13:54:55+01:00"
Output for 4.3.2 - 4.4.9
Notice: strtotime(): Called with empty time parameter in /in/Nmu0u on line 3 int(1352242800) string(1) "c"
Output for 4.3.0 - 4.3.1
Notice: strtotime() [http://www.php.net/function.strtotime]: Called with empty time parameter in /in/Nmu0u on line 3 int(1352242800) string(1) "c"