3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php use \DateTime; $date = new DateTime('2000-01-01'); echo $date->format('Y-m-d H:i:s'); ?>
based on CJJRW
Output for 5.5.25 - 5.5.35, 5.6.9 - 7.2.0
Warning: The use statement with non-compound name 'DateTime' has no effect in /in/gHoEK on line 2 2000-01-01 00:00:00
Output for 5.3.21 - 5.5.24, 5.6.8
2000-01-01 00:00:00