3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time ='2013-03-30 01:15:00'; $stamp = strtotime($time); for($i=0; $i<4; $i++){ echo date('Y-m-d H:i:s', strtotime("+{$i} hours", $stamp))."<br />\n"; }
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
2013-03-30 01:15:00<br /> 2013-03-30 02:15:00<br /> 2013-03-30 03:15:00<br /> 2013-03-30 04:15:00<br />
Output for 5.0.0 - 5.0.2
2013-03-30 00:00:00<br /> 2013-03-30 01:00:00<br /> 2013-03-30 02:00:00<br /> 2013-03-30 03:00:00<br />