3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $timestamp = 1386079029; echo date(DATE_ATOM, strtotime("midnight", $timestamp));
Output for 5.1.3 - 7.1.0
2013-12-03T00:00:00+01:00
Output for 5.1.1 - 5.1.2
2013-12-03T00:00:00+0100
Output for 5.1.0
Notice: Use of undefined constant DATE_ATOM - assumed 'DATE_ATOM' in /in/4MioU on line 5 TueAMCETE_AMCET+0100Dec
Output for 4.3.0 - 5.0.5
Notice: Use of undefined constant DATE_ATOM - assumed 'DATE_ATOM' in /in/4MioU on line 5 ThuAMCETE_AMCET+0100Jan