3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Source: https://bugs.php.net/bug.php?id=62476 $t = new DateTimeZone('CT'); echo $t->getName();
based on aV2v9
Output for 7.0.0 - 7.3.0rc4
Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone (CT) in /in/X7fAF:4 Stack trace: #0 /in/X7fAF(4): DateTimeZone->__construct('CT') #1 {main} thrown in /in/X7fAF on line 4
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (CT)' in /in/X7fAF:4 Stack trace: #0 /in/X7fAF(4): DateTimeZone->__construct('CT') #1 {main} thrown in /in/X7fAF on line 4
Process exited with code 255.