3v4l.org

run code in 300+ PHP versions simultaneously
<?php $utc = new DateTimeZone('UTC'); $amla = new DateTimeZone('America/New_York'); $two_past_midnight = new DateTime('2016-03-12 19:00', $utc); if ( date('T',$two_past_midnight) == 'EST' ){ echo 'Easter Standard Time'; } else{ echo "Estern Daylight Time"; } $two_past_midnight->setTimeZone($amla); echo $two_past_midnight->format('T'); ?>

preferences:
55.17 ms | 402 KiB | 5 Q