3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime('2013-06-19 12:00:00', new DateTimezone('America/New_York')); echo $date->format('Y-m-d H:i:s'), PHP_EOL; $date->modify('-1 minute'); echo $date->format('Y-m-d H:i:s'), PHP_EOL; $date->modify('+1 minute'); echo $date->format('Y-m-d H:i:s'), PHP_EOL;
Output for 5.3.0 - 5.6.30, hhvm-3.10.1 - 3.17.3, 7.0.0 - 7.2.0
2013-06-19 12:00:00 2013-06-19 11:59:00 2013-06-19 12:00:00