3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d = new \DateTime("Monday of week 1 in 2014",new \DateTimeZone('Europe\Paris')); echo $d->format("d.m.Y");
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone (Europe\Paris) in /in/XUEHm:3 Stack trace: #0 /in/XUEHm(3): DateTimeZone->__construct('Europe\\Paris') #1 {main} thrown in /in/XUEHm on line 3
Process exited with code 255.
Output for 5.4.29 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (Europe\Paris)' in /in/XUEHm:3 Stack trace: #0 /in/XUEHm(3): DateTimeZone->__construct('Europe\\Paris') #1 {main} thrown in /in/XUEHm on line 3
Process exited with code 255.
Output for 5.4.27 - 5.4.28
Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (Europe\Paris)' in /in/XUEHm:3 Stack trace: #0 /in/XUEHm(3): DateTimeZone->__construct('Europe\\PParis) #1 {main} thrown in /in/XUEHm on line 3
Process exited with code 255.
Output for 5.3.0 - 5.4.26
Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (Europe\Paris)' in /in/XUEHm:3 Stack trace: #0 /in/XUEHm(3): DateTimeZone->__construct('Europe\Paris') #1 {main} thrown in /in/XUEHm on line 3
Process exited with code 255.
Output for 5.2.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/XUEHm on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/XUEHm on line 3 Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (Europe\Paris)' in /in/XUEHm:3 Stack trace: #0 /in/XUEHm(3): DateTimeZone->__construct('Europe\Paris') #1 {main} thrown in /in/XUEHm on line 3
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/XUEHm on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/XUEHm on line 3 Fatal error: Class 'DateTime' not found in /in/XUEHm on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/XUEHm on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/XUEHm on line 3 Fatal error: Cannot instantiate non-existent class: datetime in /in/XUEHm on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/XUEHm on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/XUEHm on line 3 Fatal error: Cannot instantiate non-existent class: datetime in /in/XUEHm on line 3