3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pos = strpos('PHP 5.6.10', phpversion()); $pos_old = strpos('5.5.9', phpversion()); $arr_new = array(); $arr_old = array(); print "<pre>"; if($pos !== false){ $arr_new = timezone_abbreviations_list(); $i=0; foreach( $arr_new as $key => $arr){ if($key == 'pst'){ $i=1; } if($i == 1){ foreach($arr as $sub_arr){ echo $key. '=>'. $sub_arr['timezone_id']; echo "\n"; } } } } if($pos_old !== false){ $arr_old = array_keys(timezone_abbreviations_list()); } ?>
based on SKT8V
Output for 5.3.18 - 5.6.9, 5.6.11 - 7.2.0
<pre>
Output for 5.6.10
<pre>pst=>America/Los_Angeles pst=>America/Bahia_Banderas pst=>America/Boise pst=>America/Creston pst=>America/Dawson pst=>America/Dawson_Creek pst=>America/Ensenada pst=>America/Hermosillo pst=>America/Inuvik pst=>America/Juneau pst=>America/Mazatlan pst=>America/Metlakatla pst=>America/Santa_Isabel pst=>America/Sitka pst=>America/Tijuana pst=>America/Vancouver pst=>America/Whitehorse pst=>Canada/Pacific pst=>Canada/Yukon pst=>Mexico/BajaNorte pst=>Mexico/BajaSur pst=>Pacific/Pitcairn pwt=>America/Los_Angeles pwt=>America/Dawson_Creek pwt=>America/Ensenada pwt=>America/Juneau pwt=>America/Metlakatla pwt=>America/Santa_Isabel pwt=>America/Sitka pwt=>America/Tijuana pwt=>America/Vancouver pwt=>Canada/Pacific pwt=>Mexico/BajaNorte pwt=>Pacific/Palau pyst=>America/Asuncion pyt=>America/Asuncion pyt=>America/Asuncion qmt=>America/Guayaquil qyzst=>Asia/Qyzylorda qyzt=>Asia/Qyzylorda qyzt=>Asia/Qyzylorda ret=>Indian/Reunion rmt=>Europe/Riga rmt=>Atlantic/Reykjavik rmt=>Asia/Rangoon rott=>Antarctica/Rothera sakst=>Asia/Sakhalin sakst=>Asia/Sakhalin sakt=>Asia/Sakhalin sakt=>Asia/Sakhalin samst=>Asia/Samarkand samst=>Europe/Samara samst=>Europe/Samara samt=>Asia/Samarkand samt=>Asia/Samarkand samt=>Europe/Samara samt=>Europe/Samara sast=>Africa/Johannesburg sast=>Africa/Johannesburg sast=>Africa/Johannesburg sast=>Africa/Maseru sast=>Africa/Windhoek sast=>Africa/Gaborone sast=>Africa/Maseru sast=>Africa/Mbabane sast=>Africa/Windhoek sbt=>Pacific/Guadalcanal sct=>Indian/Mahe sdmt=>America/Santo_Domingo sdt=>Pacific/Apia sgt=>Asia/Singapore sgt=>Asia/Singapore shest=>Asia/Aqtau shet=>Asia/Aqtau shet=>Asia/Aqtau sjmt=>America/Costa_Rica smt=>Asia/Saigon smt=>Atlantic/Stanley smt=>America/Santiago smt=>Chile/Continental smt=>Asia/Kuala_Lumpur smt=>Asia/Singapore smt=>Asia/Ho_Chi_Minh smt=>Asia/Phnom_Penh smt=>Asia/Vientiane smt=>Europe/Simferopol sret=>Asia/Srednekolymsk srt=>America/Paramaribo srt=>America/Paramaribo sst=>Pacific/Samoa sst=>Pacific/Apia sst=>Pacific/Midway sst=>Pacific/Pago_Pago stat=>Europe/Volgograd stat=>Europe/Volgograd svest=>Asia/Yekaterinburg svest=>Asia/Yekaterinburg svet=>Asia/Yekaterinburg svet=>Asia/Yekaterinburg swat=>Africa/Windhoek syot=>Antarctica/Syowa taht=>Pacific/Tahiti tasst=>Asia/Samarkand tasst=>Asia/Tashkent tasst=>Asia/Tashkent tast=>Asia/Samarkand tast=>Asia/Tashkent tast=>Asia/Tashkent tbist=>Asia/Tbilisi tbist=>Asia/Tbilisi tbit=>Asia/Tbilisi tbit=>Asia/Tbilisi tbmt=>Asia/Tbilisi tft=>Indian/Kerguelen tjt=>Asia/Dushanbe tkt=>Pacific/Fakaofo tkt=>Pacific/Fakaofo tlt=>Asia/Dili tlt=>Asia/Dili tmt=>Asia/Tehran tmt=>Europe/Tallinn tmt=>Asia/Ashgabat tmt=>Asia/Ashkhabad tmt=>Asia/Ashgabat tmt=>Asia/Ashkhabad tost=>Pacific/Tongatapu tot=>Pacific/Tongatapu tot=>Pacific/Tongatapu trst=>Europe/Istanbul trst=>Asia/Istanbul trt=>Europe/Istanbul trt=>Asia/Istanbul tsat=>Europe/Volgograd tvt=>Pacific/Funafuti uct=>Etc/UCT uct=>UCT ulast=>Asia/Ulaanbaatar ulast=>Asia/Ulan_Bator ulat=>Asia/Ulaanbaatar ulat=>Asia/Ulaanbaatar ulat=>Asia/Choibalsan ulat=>Asia/Ulan_Bator ulat=>Asia/Choibalsan ulat=>Asia/Ulan_Bator urast=>Asia/Oral urast=>Asia/Oral urat=>Asia/Oral urat=>Asia/Oral urat=>Asia/Oral utc=>Antarctica/Troll utc=>Etc/Universal utc=>Etc/UTC utc=>Etc/Zulu utc=>GMT utc=>UTC utc=>UTC uyhst=>America/Montevideo uyhst=>America/Montevideo uyst=>America/Montevideo uyt=>America/Montevideo uyt=>America/Montevideo uzst=>Asia/Samarkand uzst=>Asia/Tashkent uzt=>Asia/Samarkand uzt=>Asia/Tashkent vet=>America/Caracas vet=>America/Caracas vlast=>Asia/Vladivostok vlast=>Asia/Vladivostok vlast=>Asia/Khandyga vlat=>Asia/Vladivostok vlat=>Asia/Vladivostok vlat=>Asia/Vladivostok vlat=>Asia/Khandyga vlat=>Asia/Ust-Nera vlat=>Asia/Khandyga vlat=>Asia/Ust-Nera volst=>Europe/Volgograd volst=>Europe/Volgograd volt=>Europe/Volgograd volt=>Europe/Volgograd vost=>Antarctica/Vostok vust=>Pacific/Efate vut=>Pacific/Efate wakt=>Pacific/Wake warst=>America/Mendoza warst=>America/Argentina/Jujuy warst=>America/Argentina/Mendoza warst=>America/Argentina/San_Luis warst=>America/Jujuy wart=>America/Mendoza wart=>America/Argentina/Catamarca wart=>America/Argentina/ComodRivadavia wart=>America/Argentina/Cordoba wart=>America/Argentina/Jujuy wart=>America/Argentina/La_Rioja wart=>America/Argentina/Mendoza wart=>America/Argentina/Rio_Gallegos wart=>America/Argentina/Salta wart=>America/Argentina/San_Juan wart=>America/Argentina/San_Luis wart=>America/Argentina/Tucuman wart=>America/Argentina/Ushuaia wart=>America/Catamarca wart=>America/Cordoba wart=>America/Jujuy wart=>America/Rosario wast=>Africa/Windhoek wast=>Africa/Ndjamena wat=>Africa/Brazzaville wat=>Africa/Bissau wat=>Africa/El_Aaiun wat=>Africa/Niamey wat=>Africa/Bangui wat=>Africa/Douala wat=>Africa/Kinshasa wat=>Africa/Lagos wat=>Africa/Libreville wat=>Africa/Luanda wat=>Africa/Malabo wat=>Africa/Ndjamena wat=>Africa/Niamey wat=>Africa/Porto-Novo wat=>Africa/Windhoek wemt=>Europe/Lisbon wemt=>Europe/Madrid wemt=>Europe/Monaco wemt=>Europe/Paris wemt=>WET west=>Europe/Paris west=>Europe/Luxembourg west=>Africa/Algiers west=>Africa/Casablanca west=>Africa/Ceuta west=>Africa/El_Aaiun west=>Atlantic/Canary west=>Atlantic/Faeroe west=>Atlantic/Faroe west=>Atlantic/Madeira west=>Europe/Brussels west=>Europe/Lisbon west=>Europe/Luxembourg west=>Europe/Madrid west=>Europe/Monaco west=>WET wet=>Europe/Paris wet=>Europe/Luxembourg wet=>Africa/Algiers wet=>Africa/Casablanca wet=>Africa/Ceuta wet=>Africa/El_Aaiun wet=>Atlantic/Azores wet=>Atlantic/Canary wet=>Atlantic/Faeroe wet=>Atlantic/Faroe wet=>Atlantic/Madeira wet=>Europe/Andorra wet=>Europe/Brussels wet=>Europe/Lisbon wet=>Europe/Luxembourg wet=>Europe/Madrid wet=>Europe/Monaco wet=>WET wft=>Pacific/Wallis wgst=>America/Godthab wgst=>America/Danmarkshavn wgt=>America/Godthab wgt=>America/Danmarkshavn wib=>Asia/Jakarta wib=>Asia/Pontianak wib=>Asia/Jakarta wib=>Asia/Pontianak wib=>Asia/Jakarta wib=>Asia/Pontianak wita=>Asia/Dili wita=>Asia/Makassar wita=>Asia/Pontianak wita=>Asia/Ujung_Pandang wit=>Asia/Jayapura wmt=>Europe/Vilnius wmt=>Europe/Warsaw wsdt=>Pacific/Apia wsst=>Pacific/Apia wsst=>Pacific/Apia xjt=>Asia/Kashgar xjt=>Asia/Urumqi yakst=>Asia/Yakutsk yakst=>Asia/Yakutsk yakst=>Asia/Chita yakst=>Asia/Khandyga yakst=>Asia/Chita yakst=>Asia/Khandyga yakt=>Asia/Yakutsk yakt=>Asia/Yakutsk yakt=>Asia/Yakutsk yakt=>Asia/Chita yakt=>Asia/Khandyga yakt=>Asia/Ust-Nera yakt=>Asia/Chita yakt=>Asia/Khandyga yakt=>Asia/Ust-Nera yakt=>Asia/Chita yakt=>Asia/Khandyga yddt=>America/Dawson yddt=>America/Whitehorse yddt=>Canada/Yukon ydt=>America/Dawson ydt=>America/Juneau ydt=>America/Whitehorse ydt=>America/Yakutat ydt=>Canada/Yukon yekst=>Asia/Yekaterinburg yekt=>Asia/Yekaterinburg yekt=>Asia/Yekaterinburg yerst=>Asia/Yerevan yerst=>Asia/Yerevan yert=>Asia/Yerevan yert=>Asia/Yerevan ypt=>America/Dawson ypt=>America/Whitehorse ypt=>America/Yakutat ypt=>Canada/Yukon yst=>America/Anchorage yst=>America/Dawson yst=>America/Juneau yst=>America/Nome yst=>America/Sitka yst=>America/Whitehorse yst=>America/Yakutat yst=>Canada/Yukon ywt=>America/Dawson ywt=>America/Whitehorse ywt=>America/Yakutat ywt=>Canada/Yukon a=> b=> c=> d=> e=> f=> g=> h=> i=> k=> l=> m=> n=> o=> p=> q=> r=> s=> t=> u=> v=> w=> x=> y=> zzz=>Antarctica/Davis zzz=>America/Cambridge_Bay zzz=>America/Inuvik zzz=>America/Iqaluit zzz=>America/Pangnirtung zzz=>America/Rankin_Inlet zzz=>America/Resolute zzz=>America/Yellowknife zzz=>Antarctica/Casey zzz=>Antarctica/DumontDUrville zzz=>Antarctica/Macquarie zzz=>Antarctica/Mawson zzz=>Antarctica/Palmer zzz=>Antarctica/Rothera zzz=>Antarctica/Syowa zzz=>Antarctica/Troll zzz=>Antarctica/Vostok zzz=>Indian/Kerguelen z=>