3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (\DateTimeZone::listIdentifiers(\DateTimeZone::ALL_WITH_BC) as $tz) { try { new \DateTimeZone($tz); if (preg_match('{\AEtc/GMT[+-]\d+\z}', $tz)) { echo "OK: $tz", PHP_EOL; } } catch (\Throwable $ex) { echo "FAIL: $tz", PHP_EOL; } }
Output for git.master, git.master_jit, rfc.property-hooks
OK: Etc/GMT+0 OK: Etc/GMT+1 OK: Etc/GMT+10 OK: Etc/GMT+11 OK: Etc/GMT+12 OK: Etc/GMT+2 OK: Etc/GMT+3 OK: Etc/GMT+4 OK: Etc/GMT+5 OK: Etc/GMT+6 OK: Etc/GMT+7 OK: Etc/GMT+8 OK: Etc/GMT+9 OK: Etc/GMT-0 OK: Etc/GMT-1 OK: Etc/GMT-10 OK: Etc/GMT-11 OK: Etc/GMT-12 OK: Etc/GMT-13 OK: Etc/GMT-14 OK: Etc/GMT-2 OK: Etc/GMT-3 OK: Etc/GMT-4 OK: Etc/GMT-5 OK: Etc/GMT-6 OK: Etc/GMT-7 OK: Etc/GMT-8 OK: Etc/GMT-9

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:
48.56 ms | 402 KiB | 8 Q