3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set("Europe/Bratislava"); $a = new \DateTime("0001-01-01"); echo $a->format(DateTime::ATOM);
Output for 5.3.19 - 5.5.24, 5.6.8, 5.6.15 - 7.2.0
0001-01-01T00:00:00+01:00
Output for 5.5.25 - 5.5.35, 5.6.9 - 5.6.14
0001-01-01T00:00:00+00:57