3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(strtotime('1582-10-16T16:34:04+00:00')); var_dump(gmdate('r', strtotime('1582-10-16T16:34:04+00:00')));
Output for 5.0.0 - 5.0.5, 5.4.24 - 7.1.0
int(-12219146756) string(31) "Sat, 16 Oct 1582 16:34:04 +0000"
Output for 5.2.6 - 5.4.23
int(-12219146756) string(31) "Sun, 16 Oct 1582 16:34:04 +0000"
Output for 5.1.0 - 5.2.5
bool(false) string(31) "Thu, 01 Jan 1970 00:00:00 +0000"
Output for 4.3.0 - 4.4.9
int(-1) string(31) "Wed, 31 Dec 1969 23:59:59 +0000"