3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = new DateTime(date('Y-m-d H:i:00'), new DateTimeZone(date('T'))); $tz = $now->getTimezone(); if(strtolower($tz->getName()) != 'America/New_York'){ $now->setTimezone(new DateTimeZone('America/New_York')); } $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:
89.67 ms | 405 KiB | 5 Q