3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo ("Expires: ".gmdate("D, d M Y H:i:s", time() + 3600)." GMT"); echo "\n"; $d1 = date("l, d-M-Y H:i:s T"); print_r( $d1 + 10*24*60*60);
Output for 7.1.0 - 7.1.20, 7.2.0 - 7.2.6
Expires: Thu, 22 Oct 2015 12:09:03 GMT Warning: A non-numeric value encountered in /in/H6r9P on line 8 864000
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20
Expires: Thu, 22 Oct 2015 12:09:03 GMT 864000

preferences:
114.47 ms | 402 KiB | 135 Q