3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tz = new DateTimeZone('Europe/Moscow'); $now = time(); foreach (['en_US', 'ja_JA', 'ru_RU'] as $locale) { printf("%s:\n", $locale); foreach ([IntlDateFormatter::MEDIUM, IntlDateFormatter::LONG] as $datetype) { $formatter = new IntlDateFormatter($locale, $datetype, IntlDateFormatter::NONE); printf("- %s\n", $formatter->format($now)); } }

preferences:
16.52 ms | 402 KiB | 5 Q