3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo new DateTime('2015-03-27'); ?>
based on 7GOUG
Output for 7.1.0 - 7.3.0rc3
Recoverable fatal error: Object of class DateTime could not be converted to string in /in/Cj6cR on line 2
Process exited with code 255.
Output for 5.6.38 - 7.0.28
Catchable fatal error: Object of class DateTime could not be converted to string in /in/Cj6cR on line 2
Process exited with code 255.