3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set("Europe/Vilnius"); $datetime1 = new DateTime('1970-01-01 11:55:00'); var_dump($datetime1->getOffset()); var_dump($datetime1->getTimestamp()); $datetime2 = new DateTime('2014-01-29 11:55:00'); var_dump($datetime2->getOffset()); var_dump($datetime2->getTimestamp()); ?>