3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = new \DateTime('0000-00-00 00:00:00', new \DateTimeZone(\DateTimeZone::UTC)); var_dump($x->format('c'));
based on tFPAB
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone (1024) in /in/tQZeA:3 Stack trace: #0 /in/tQZeA(3): DateTimeZone->__construct('1024') #1 {main} thrown in /in/tQZeA on line 3
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 (1024)' in /in/tQZeA:3 Stack trace: #0 /in/tQZeA(3): DateTimeZone->__construct('1024') #1 {main} thrown in /in/tQZeA on line 3
Process exited with code 255.