3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date(DATE_RFC1123, strtotime('2014-07-24')) . '---' . 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 +0200---Thu, 24 Jul 2014 19:50:00 +0200
Output for 5.1.1 - 5.1.6
Thu, 24 Jul 2014 00:00:00 CEST---Thu, 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/Gi2Vp on line 2 Notice: Use of undefined constant DATE_RFC1123 - assumed 'DATE_RFC1123' in /in/Gi2Vp on line 2 ThuAMCESTE_RJulyC1123---ThuPMCESTE_RJulyC1123