3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = new DateTime('0000a-00-00'); echo $a->format('j M Y \i\s \a l');
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (0000a-00-00) at position 8 (-): Double timezone specification in /in/dcc2J:3 Stack trace: #0 /in/dcc2J(3): DateTime->__construct('0000a-00-00') #1 {main} thrown in /in/dcc2J on line 3
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (0000a-00-00) at position 8 (-): Double timezone specification' in /in/dcc2J:3 Stack trace: #0 /in/dcc2J(3): DateTime->__construct() #1 {main}
Process exited with code 255.
Output for 5.3.7 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (0000a-00-00) at position 8 (-): Double timezone specification' in /in/dcc2J:3 Stack trace: #0 /in/dcc2J(3): DateTime->__construct('0000a-00-00') #1 {main} thrown in /in/dcc2J on line 3
Process exited with code 255.