3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $tz = new DateTimeZone('12-01-1984');
based on aO6A6
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone (12-01-1984) in /in/5cQjN:2 Stack trace: #0 /in/5cQjN(2): DateTimeZone->__construct('12-01-1984') #1 {main} thrown in /in/5cQjN on line 2
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (12-01-1984)' in /in/5cQjN:2 Stack trace: #0 /in/5cQjN(2): DateTimeZone->__construct('12-01-1984') #1 {main} thrown in /in/5cQjN on line 2
Process exited with code 255.