3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time = time(); print 'Now: ' . date('Y-m-d H:i:s', $time) . PHP_EOL; print '+60 seconds: ' . date('Y-m-d H:i:s', $time + 60) . PHP_EOL; print '+1 hour: ' . date('Y-m-d H:i:s', $time + (60*60)) . PHP_EOL; print '+1 day: ' . date('Y-m-d H:i:s', $time + (60*60*24)) . PHP_EOL;
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.1.0
Now: 2013-12-07 16:36:05 +60 seconds: 2013-12-07 16:37:05 +1 hour: 2013-12-07 17:36:05 +1 day: 2013-12-08 16:36:05
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/s9m4K on line 5 Now: 2013-12-07 16:36:05PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/s9m4K on line 6 +60 seconds: 2013-12-07 16:37:05PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/s9m4K on line 7 +1 hour: 2013-12-07 17:36:05PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/s9m4K on line 8 +1 day: 2013-12-08 16:36:05PHP_EOL