3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d1 = new DateTime('2016-03-11 11:00:00', new DateTimeZone('UTC')); $d1->setTimezone(new DateTimeZone('-0400')); echo $d1->format('U'); echo "\n"; $t1 = $d1->getTimestamp(); echo $t1;
based on lica0
Output for 7.1.3 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.23, 7.4.0 - 7.4.11, 8.0.0alpha1 - rc2
1457694000 1457694000
Output for 7.1.0 - 7.1.2
1457679600 1457694000