3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date(DATE_RFC1123, strtotime('2014-07-24')); echo date(DATE_RFC1123, strtotime('2014-07-24 19:50:00'));
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Thu, 24 Jul 2014 00:00:00 +0200Thu, 24 Jul 2014 19:50:00 +0200
Output for 5.1.1 - 5.1.6
Thu, 24 Jul 2014 00:00:00 CESTThu, 24 Jul 2014 19:50:00 CEST
Output for 4.3.0 - 5.1.0
Notice: Use of undefined constant DATE_RFC1123 - assumed 'DATE_RFC1123' in /in/MI8oi on line 2 ThuAMCESTE_RJulyC1123 Notice: Use of undefined constant DATE_RFC1123 - assumed 'DATE_RFC1123' in /in/MI8oi on line 3 ThuPMCESTE_RJulyC1123