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;
Output for 7.1.3 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.30, 8.2.0 - 8.2.25, 8.3.0 - 8.3.14
1457694000 1457694000
Output for 7.1.0 - 7.1.2
1457679600 1457694000

preferences:
57.97 ms | 406 KiB | 5 Q