3v4l.org

run code in 300+ PHP versions simultaneously
<?php $occurenceDate = '2012-05-06 13:32:00'; $dt = new \DateTime( date('Y-m-d H:i:s' , strtotime( $occurenceDate ) ) , new \DateTimeZone( 'GMT' ) ); var_dump($dt); $dt->modify('+561 days'); var_dump($dt);

preferences:
24.11 ms | 406 KiB | 5 Q