3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php defined("PHP_EOL") || define("PHP_EOL", "\n"); if (function_exists('date_default_timezone_get')) { echo "System default timezone: ", date_default_timezone_get(), PHP_EOL; } $time = strtotime('1582-12-14T00:00:00Z'); echo $time . PHP_EOL; $time526 = -12214109972; $time430 = -12214108800; $date526 = gmdate('Y-m-d H:i:s', $time526); $date430 = gmdate('Y-m-d H:i:s', $time430); echo $time526 . ' ' . $date526, PHP_EOL; echo $time430 . ' ' . $date430, PHP_EOL;
Output for 5.2.6 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
System default timezone: Europe/Amsterdam -12214108800 -12214109972 1582-12-13 23:40:28 -12214108800 1582-12-14 00:00:00
Output for 5.2.4 - 5.2.5
System default timezone: Europe/Amsterdam -12214109972 1582-12-13 23:40:28 -12214108800 1582-12-14 00:00:00
Output for 5.1.0 - 5.2.3
System default timezone: Europe/Amsterdam -12214109972 1582-12-02 23:40:28 -12214108800 1582-12-03 00:00:00
Output for 5.0.0 - 5.0.5
-12214108800 -12214109972 1582-12-13 23:40:28 -12214108800 1582-12-14 00:00:00
Output for 4.3.0 - 4.4.9
-1 -12214109972 1582-12-13 23:40:28 -12214108800 1582-12-14 00:00:00