3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if ( ! defined('PHP_EOL')) { define('PHP_EOL', "\n"); } $now = time(); $plusThreeHours = gmdate('M-j-Y-H-i', strtotime('+3 hours', $now)); echo 'Now: ', gmdate('M-j-Y-H-i', $now), PHP_EOL; echo 'Plus 3 Hours: ', $plusThreeHours, PHP_EOL;
Output for 4.3.0 - 4.4.9, 5.0.3 - 7.1.0
Now: Feb-24-2014-12-23 Plus 3 Hours: Feb-24-2014-15-23
Output for 5.0.0 - 5.0.2
Now: Feb-24-2014-12-23 Plus 3 Hours: Feb-24-2014-02-00