3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fecha = date('2015-05-05 01:00:00'); echo $fecha."\n"; $nuevafecha = strtotime ( '-3 hour' , strtotime ( $fecha ) ) ; $nuevafecha = date ( 'Y-m-d H:i:s' , $nuevafecha ); echo $nuevafecha."\n"; ?>
based on Y2LCQ
Output for 4.3.0 - 4.4.9, 5.0.3 - 7.2.0
2015-05-05 01:00:00 2015-05-04 22:00:00
Output for 5.0.0 - 5.0.2
2015-05-05 01:00:00 2015-05-04 21:00:00