3v4l.org

run code in 300+ PHP versions simultaneously
<?php // "date_default_timezone_set" may be required by your server //date_default_timezone_set( 'Europe/Dublin' ); date_default_timezone_set( 'Asia/Tokyo' ); $ts = 1682429400; echo 'STREAMER_TYPE_DATE is ' . gmstrftime("%Y%m%dT%H%M%SZ", $ts) . "\n"; //STREAMER_TYPE_DATE $dateFormatGMT = datefmt_create( 'en_US', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'UTC', IntlDateFormatter::GREGORIAN, "yyyyMMdd'T'HHmmSS'Z'" ); echo 'STREAMER_TYPE_DATE is ' . datefmt_format($dateFormatGMT, $ts) . "\n"; echo 'STREAMER_TYPE_DATE_DASHES is ' . gmstrftime("%Y-%m-%dT%H:%M:%S.000Z", $ts) . "\n"; //STREAMER_TYPE_DATE_DASHES $dateFormatGMTdashes = datefmt_create( 'en_US', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'UTC', IntlDateFormatter::GREGORIAN, "yyyy-MM-dd'T'HH:mm:SS'.000Z'" ); echo 'STREAMER_TYPE_DATE_DASHES is ' . datefmt_format($dateFormatGMTdashes, $ts) . "\n";

preferences:
24.53 ms | 405 KiB | 5 Q