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; $date = gmdate('Y-m-d H:i:s'); echo $time;
Output for 5.2.6 - 7.1.0
-12214109972 -12214109972
Output for 5.1.0 - 5.2.5
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.0.5
-12214108800 -12214108800
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/rghNJ on line 4 -12214108800PHP_EOL-12214108800
Output for 4.3.0
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rghNJ on line 4 -12214109972PHP_EOL-12214109972