3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new \DateTime('2000-03-12 08:30:00'); $fmt = new IntlDateFormatter( 'en_US', IntlDateFormatter::FULL, IntlDateFormatter::MEDIUM, 'America/New_York' ); $dropOffDateTime = \DateTime::createFromFormat( 'U', strtotime( $fmt->format($date) ) ); echo $dropOffDateTime->getTimestamp();

preferences:
51.7 ms | 402 KiB | 5 Q