3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTime(date('2017-02-15 12:00:00'), new DateTimeZone(date('T'))); $tz = $now->getTimezone(); if(strtolower($tz->getName()) != 'est'){ $now->setTimezone(new DateTimeZone('EST')); } $min = clone $now; echo $min->format('m/d/Y g:i a U') . "\n"; $min->setTime(8,30,0); echo $min->format('m/d/Y g:i a U');

preferences:
32.95 ms | 405 KiB | 5 Q