3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo($givendate = strtotime('2013-07-16 17:30:00')."\n"); $cd = strtotime($givendate); $newdate = date('Y/m/d h:i:s', mktime(date('Y', $cd)), mktime(date('m', $cd)), mktime(date('d', $cd)), mktime(date('h', $cd) + 15), mktime(date('i', $cd)), mktime(date('s', $cd))); echo($newdate."\n");
Output for 5.1.0 - 7.1.0
1373988600 Warning: date() expects at most 2 parameters, 7 given in /in/UmiRE on line 6
Output for 4.3.0 - 5.0.5
1373988600 Warning: Wrong parameter count for date() in /in/UmiRE on line 6