3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $objDateTime = new DateTime('30-APR-13 01.31.50.584000000 PM'); echo $objDateTime->format('c');
based on pjX7R
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (30-APR-13 01.31.50.584000000 PM) at position 10 (0): The timezone could not be found in the database in /in/hfFE6:2 Stack trace: #0 /in/hfFE6(2): DateTime->__construct('30-APR-13 01.31...') #1 {main} thrown in /in/hfFE6 on line 2
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (30-APR-13 01.31.50.584000000 PM) at position 10 (0): The timezone could not be found in the database' in /in/hfFE6:2 Stack trace: #0 /in/hfFE6(2): DateTime->__construct('30-APR-13 01.31...') #1 {main} thrown in /in/hfFE6 on line 2
Process exited with code 255.