3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = new \DateTime('6 month'); $d->setTime(23, 59, 59); var_dump($d->format('c'));
based on eRU7L
Output for 5.6.0 - 7.3.0beta1
string(25) "2017-04-26T23:59:59+02:00"