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(); print_r( $d1 );
based on ZYuNZ
Output for 7.2.0
Expires: Thu, 22 Oct 2015 12:05:19 GMT DateTime Object ( [date] => 2015-10-22 13:05:19.004084 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.10
Expires: Thu, 22 Oct 2015 12:05:19 GMT DateTime Object ( [date] => 2015-10-22 13:05:19.004415 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.7
Expires: Thu, 22 Oct 2015 12:05:19 GMT DateTime Object ( [date] => 2015-10-22 13:05:19.003666 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.6
Expires: Thu, 22 Oct 2015 12:05:19 GMT DateTime Object ( [date] => 2015-10-22 13:05:19.013469 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.5
Expires: Thu, 22 Oct 2015 12:05:19 GMT DateTime Object ( [date] => 2015-10-22 13:05:19.006749 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.1.0
Expires: Thu, 22 Oct 2015 12:05:19 GMT DateTime Object ( [date] => 2015-10-22 13:05:19.004124 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.30 - 5.4.45, 5.5.14 - 7.0.20
Expires: Thu, 22 Oct 2015 12:05:19 GMT DateTime Object ( [date] => 2015-10-22 13:05:19.000000 [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:05:19 GMT DateTime Object ( [date] => 2015-10-22 13:05:19 [timezone_type] => 3 [timezone] => Europe/Amsterdam )