3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date("r"); echo PHP_EOL; echo date("r", time() - 60 * 60);
Output for 4.3.11 - 4.4.9, 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
Mon, 05 Aug 2013 19:28:04 +0200 Mon, 05 Aug 2013 18:28:04 +0200
Output for 4.3.10, 5.0.2 - 5.0.3
Mon, 5 Aug 2013 19:28:04 +0200 Mon, 5 Aug 2013 18:28:04 +0200
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Mon, 5 Aug 2013 19:28:04 +0200 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rgbhA on line 3 PHP_EOLMon, 5 Aug 2013 18:28:04 +0200