3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = timezone_identifiers_list(); $localized = array_map(function($tz) { $fmt = new IntlDateFormatter( "ru_RU" ,IntlDateFormatter::FULL, IntlDateFormatter::FULL, $tz, IntlDateFormatter::GREGORIAN, "MM/dd/yyyy e"); return $fmt->format(0); }, $list); var_dump($localized);
Output for git.master, git.master_jit
Fatal error: Uncaught IntlException: datefmt_create: No such time zone: 'America/Nuuk': U_ILLEGAL_ARGUMENT_ERROR in /in/WK1rV:7 Stack trace: #0 /in/WK1rV(7): IntlDateFormatter->__construct('ru_RU', 0, 0, 'America/Nuuk', 1, 'MM/dd/yyyy e') #1 [internal function]: {closure}('America/Nuuk') #2 /in/WK1rV(6): array_map(Object(Closure), Array) #3 {main} thrown in /in/WK1rV on line 7
Process exited with code 255.
Output for rfc.property-hooks
Fatal error: Uncaught IntlException: datefmt_create: No such time zone: 'America/Ciudad_Juarez': U_ILLEGAL_ARGUMENT_ERROR in /in/WK1rV:7 Stack trace: #0 /in/WK1rV(7): IntlDateFormatter->__construct('ru_RU', 0, 0, 'America/Ciudad_...', 1, 'MM/dd/yyyy e') #1 [internal function]: {closure}('America/Ciudad_...') #2 /in/WK1rV(6): array_map(Object(Closure), Array) #3 {main} thrown in /in/WK1rV on line 7
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
201.84 ms | 407 KiB | 5 Q