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)); }
Output for 4.3.0 - 4.4.9, 5.0.3 - 7.1.0
2013-03-30 01:15:002013-03-30 02:15:002013-03-30 03:15:002013-03-30 04:15:00
Output for 5.0.0 - 5.0.2
2013-03-30 00:00:002013-03-30 01:00:002013-03-30 02:00:002013-03-30 03:00:00