3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $timeStamp = strtotime(time()); $ayer = time() - 1 * 24 * 60 * 60; echo PHP_EOL; echo date(DATE_ATOM, $ayer);
Output for 5.1.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2013-07-31T16:36:49+02:00
Output for 5.1.1 - 5.1.2
2013-07-31T16:36:49+0200
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.1.0
Notice: Use of undefined constant DATE_ATOM - assumed 'DATE_ATOM' in /in/37H9Z on line 7 WedPMCESTE_PMCEST+0200Jul
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/37H9Z on line 6 PHP_EOL Notice: Use of undefined constant DATE_ATOM - assumed 'DATE_ATOM' in /in/37H9Z on line 7 WedPMCESTE_PMCEST+0200Jul