3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time = strtotime('1582-12-14'); 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.12.0, 7.0.0 - 7.1.0
-12214109972 -12214109972 1582-12-13 23:40:28 -12214108800 1582-12-14 00:00:00
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.2.4 - 5.2.5
-12214109972 1582-12-13 23:40:28 -12214108800 1582-12-14 00:00:00
Output for 5.1.0 - 5.2.3
-12214109972 1582-12-02 23:40:28 -12214108800 1582-12-03 00:00:00
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.0.5
-12214108800 -12214109972 1582-12-13 23:40:28 -12214108800 1582-12-14 00:00:00
Output for 4.3.1 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lT1I8 on line 4 -12214108800PHP_EOL-12214109972 1582-12-13 23:40:28 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lT1I8 on line 11 PHP_EOL-12214108800 1582-12-14 00:00:00 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lT1I8 on line 12 PHP_EOL
Output for 4.3.0
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lT1I8 on line 4 -12214109972PHP_EOL-12214109972 1582-12-13 23:40:28 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lT1I8 on line 11 PHP_EOL-12214108800 1582-12-14 00:00:00 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lT1I8 on line 12 PHP_EOL