3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo new \DateTime('today midnight');
based on t2Hs0
Output for 7.1.0 - 7.3.0rc3
Recoverable fatal error: Object of class DateTime could not be converted to string in /in/RPevC on line 3
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/RPevC on line 3
Process exited with code 255.