3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo gmdate(DATE_RFC2822, strtotime(date('H:i')+ 60*60) );
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/C71bl on line 2 Mon, 20 Mar 3617 16:27:42 +0000
Output for 5.2.6 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
Mon, 20 Mar 3617 16:27:42 +0000
Output for 5.1.1 - 5.2.5
Thu, 01 Jan 1970 00:00:00 +0000
Output for 5.1.0
Notice: Use of undefined constant DATE_RFC2822 - assumed 'DATE_RFC2822' in /in/C71bl on line 2 ThuAMGMTE_RJanuaryC2822
Output for 4.3.0 - 5.0.5
Notice: Use of undefined constant DATE_RFC2822 - assumed 'DATE_RFC2822' in /in/C71bl on line 2 WedPMGMTE_RDecemberC2822