3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set ( 'America/Chicago' ); echo \DateTime::createFromFormat('Y-m-d H:i T', '2015-10-22 09:23 CDT')->format('c'); echo \DateTime('2015-10-22T08:50:39-0500')->format('Y-m-d H:i T');
Output for 7.0.0 - 7.2.0
2015-10-22T09:23:00-05:00 Fatal error: Uncaught Error: Call to undefined function DateTime() in /in/7RHbi:5 Stack trace: #0 {main} thrown in /in/7RHbi on line 5
Process exited with code 255.
Output for 5.3.19 - 5.6.28
2015-10-22T09:23:00-05:00 Fatal error: Call to undefined function DateTime() in /in/7RHbi on line 5
Process exited with code 255.