3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timeStamp = strtotime(time()); $ayer = time() - 1 * 24 * 60 * 60; $ayer = 1377921600; echo PHP_EOL; echo date(DATE_ATOM, $ayer); echo strtotime('2013-08-01 04:00:00 UTC');
Output for 5.1.3 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.25, 7.3.0 - 7.3.12, 7.4.0
2013-08-31T06:00:00+02:001375329600
Output for 5.1.2
2013-08-31T06:00:00+02001375329600
Output for 5.1.1
2013-08-31T06:00:00+0200
Output for 5.1.0
Notice: Use of undefined constant DATE_ATOM - assumed 'DATE_ATOM' in /in/fRYdn on line 11 SatAMCESTE_AMCEST+0200Aug
Output for 4.3.10 - 4.3.11, 4.4.0 - 4.4.9, 5.0.2 - 5.0.5
Notice: Use of undefined constant DATE_ATOM - assumed 'DATE_ATOM' in /in/fRYdn on line 11 SatAMCESTE_AMCEST+0200Aug1375329600
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/fRYdn on line 10 PHP_EOL Notice: Use of undefined constant DATE_ATOM - assumed 'DATE_ATOM' in /in/fRYdn on line 11 SatAMCESTE_AMCEST+0200Aug1375329600

preferences:
207.74 ms | 402 KiB | 260 Q