3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo gmdate(DATE_RFC2822, strtotime(date('H:i')) + 60*120 );
Output for 5.1.1 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Thu, 20 Mar 2014 18:28:00 +0000
Output for 4.3.0 - 5.1.0
Notice: Use of undefined constant DATE_RFC2822 - assumed 'DATE_RFC2822' in /in/EOFp2 on line 2 ThuPMGMTE_RMarchC2822