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_r( $d1 );
based on 9NRY3
Output for 5.4.30 - 5.4.45, 5.5.14 - 7.1.5, 7.1.7 - 7.2.0
Expires: Thu, 22 Oct 2015 12:04:37 GMT DateTime Object ( [date] => 2012-07-08 11:14:15.638276 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.6
Expires: Thu, 22 Oct 2015 12:04:38 GMT DateTime Object ( [date] => 2012-07-08 11:14:15.638276 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.0 - 5.4.29, 5.5.0 - 5.5.13
Expires: Thu, 22 Oct 2015 12:04:37 GMT DateTime Object ( [date] => 2012-07-08 11:14:15 [timezone_type] => 3 [timezone] => Europe/Amsterdam )