3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new DateTime('2016-03-27 01:00:00', 'Europe\Brussels'))->add(new DateInterval('PT3H'))->format(DateTime::RFC3339);
based on rjZUO
Output for 7.0.0 - 7.3.0beta1
Fatal error: Uncaught TypeError: DateTime::__construct() expects parameter 2 to be DateTimeZone, string given in /in/gWJuT:3 Stack trace: #0 /in/gWJuT(3): DateTime->__construct('2016-03-27 01:0...', 'Europe\\Brussels') #1 {main} thrown in /in/gWJuT on line 3
Process exited with code 255.
Output for 5.5.13 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct() expects parameter 2 to be DateTimeZone, string given' in /in/gWJuT:3 Stack trace: #0 /in/gWJuT(3): DateTime->__construct('2016-03-27 01:0...', 'Europe\\Brussels') #1 {main} thrown in /in/gWJuT on line 3
Process exited with code 255.
Output for 5.5.11 - 5.5.12
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct() expects parameter 2 to be DateTimeZone, string given' in /in/gWJuT:3 Stack trace: #0 /in/gWJuT(3): DateTime->__construct('2016-03-27 01:0...', 'Europe\\Brusssels) #1 {main} thrown in /in/gWJuT on line 3
Process exited with code 255.
Output for 5.5.0 - 5.5.10
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct() expects parameter 2 to be DateTimeZone, string given' in /in/gWJuT:3 Stack trace: #0 /in/gWJuT(3): DateTime->__construct('2016-03-27 01:0...', 'Europe\Brussels') #1 {main} thrown in /in/gWJuT on line 3
Process exited with code 255.