3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo($givendate = date('Y/m/d H:i:s')."\n"); $cd = strtotime($givendate); $newdate = date('Y/m/d h:i:s', mktime(date('h', $cd) + 15)); echo($newdate."\n");
Output for 4.3.0 - 5.5.6, 5.5.8 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.1.0
2013/07/16 08:12:40 2013/07/16 11:12:40
Output for 5.5.7, hhvm-3.12.0
2013/07/16 08:12:41 2013/07/16 11:12:41