3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = [ (new DateTimeImmutable())->format('c'), (new DateTimeImmutable())->modify('next day')->format('c'), (new DateTimeImmutable())->modify('tomorrow')->format('c'), (new DateTimeImmutable())->modify('next day')->modify('next day')->format('c'), (new DateTimeImmutable())->modify('tomorrow')->modify('tomorrow')->format('c'), ]; var_dump(...$d);
based on fMlRK
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
string(25) "2017-07-11T15:55:28+02:00" string(25) "2017-07-12T15:55:28+02:00" string(25) "2017-07-12T00:00:00+02:00" string(25) "2017-07-13T15:55:28+02:00" string(25) "2017-07-13T00:00:00+02:00"