3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo ("Expires: ".gmdate("D, d M Y H:i:s", time() + 3600)." GMT"); echo "\n"; $d1=new DateTime("2012-07-08 11:14:15.638276"); print( $d1 );
based on VNqjs
Output for 7.1.0 - 7.2.0
Expires: Thu, 22 Oct 2015 12:04:19 GMT Recoverable fatal error: Object of class DateTime could not be converted to string in /in/9NRY3 on line 8
Process exited with code 255.
Output for 5.4.0 - 7.0.20
Expires: Thu, 22 Oct 2015 12:04:19 GMT Catchable fatal error: Object of class DateTime could not be converted to string in /in/9NRY3 on line 8
Process exited with code 255.