3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = [ (new DateTimeImmutable())->format('c.u'), (new DateTimeImmutable())->modify('next day')->format('c.u'), (new DateTimeImmutable())->modify('tomorrow')->format('c.u'), (new DateTimeImmutable())->modify('next day')->modify('next day')->format('c.u'), (new DateTimeImmutable())->modify('tomorrow')->modify('tomorrow')->format('c.u'), ]; var_dump(...$d);
based on ubiKj
Output for 7.3.0rc3
string(32) "2017-07-11T15:55:55+02:00.011827" string(32) "2017-07-12T15:55:55+02:00.011865" string(32) "2017-07-12T00:00:00+02:00.000000" string(32) "2017-07-13T15:55:55+02:00.011899" string(32) "2017-07-13T00:00:00+02:00.000000"
Output for 7.3.0beta1
string(32) "2017-07-11T15:55:55+02:00.004834" string(32) "2017-07-12T15:55:55+02:00.004861" string(32) "2017-07-12T00:00:00+02:00.000000" string(32) "2017-07-13T15:55:55+02:00.059934" string(32) "2017-07-13T00:00:00+02:00.000000"
Output for 7.3.0alpha1
string(32) "2017-07-11T15:55:55+02:00.002488" string(32) "2017-07-12T15:55:55+02:00.002516" string(32) "2017-07-12T00:00:00+02:00.000000" string(32) "2017-07-13T15:55:55+02:00.002541" string(32) "2017-07-13T00:00:00+02:00.000000"
Output for 7.2.6
string(32) "2017-07-11T15:55:55+02:00.002863" string(32) "2017-07-12T15:55:55+02:00.002883" string(32) "2017-07-12T00:00:00+02:00.000000" string(32) "2017-07-13T15:55:55+02:00.002900" string(32) "2017-07-13T00:00:00+02:00.000000"
Output for 7.2.0
string(32) "2017-07-11T15:55:55+02:00.003047" string(32) "2017-07-12T15:55:55+02:00.003062" string(32) "2017-07-12T00:00:00+02:00.000000" string(32) "2017-07-13T15:55:55+02:00.003075" string(32) "2017-07-13T00:00:00+02:00.000000"
Output for 7.1.20
string(32) "2017-07-11T15:55:55+02:00.002938" string(32) "2017-07-12T15:55:55+02:00.002969" string(32) "2017-07-12T00:00:00+02:00.000000" string(32) "2017-07-13T15:55:55+02:00.002989" string(32) "2017-07-13T00:00:00+02:00.000000"
Output for 7.1.10
string(32) "2017-07-11T15:55:55+02:00.004773" string(32) "2017-07-12T15:55:55+02:00.004792" string(32) "2017-07-12T00:00:00+02:00.000000" string(32) "2017-07-13T15:55:55+02:00.004811" string(32) "2017-07-13T00:00:00+02:00.000000"
Output for 7.1.7
string(32) "2017-07-11T15:55:55+02:00.004655" string(32) "2017-07-12T15:55:55+02:00.004680" string(32) "2017-07-12T00:00:00+02:00.000000" string(32) "2017-07-13T15:55:55+02:00.004700" string(32) "2017-07-13T00:00:00+02:00.000000"
Output for 7.1.6
string(32) "2017-07-11T15:55:55+02:00.031044" string(32) "2017-07-12T15:55:55+02:00.031080" string(32) "2017-07-12T00:00:00+02:00.000000" string(32) "2017-07-13T15:55:55+02:00.031120" string(32) "2017-07-13T00:00:00+02:00.000000"
Output for 7.1.5
string(32) "2017-07-11T15:55:55+02:00.037942" string(32) "2017-07-12T15:55:55+02:00.037979" string(32) "2017-07-12T00:00:00+02:00.000000" string(32) "2017-07-13T15:55:55+02:00.038015" string(32) "2017-07-13T00:00:00+02:00.000000"
Output for 7.1.4
string(32) "2017-07-11T15:55:55+02:00.017432" string(32) "2017-07-12T15:55:55+02:00.017461" string(32) "2017-07-12T00:00:00+02:00.000000" string(32) "2017-07-13T15:55:55+02:00.017484" string(32) "2017-07-13T00:00:00+02:00.000000"
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.0.20, 7.1.3
string(32) "2017-07-11T15:55:55+02:00.000000" string(32) "2017-07-12T15:55:55+02:00.000000" string(32) "2017-07-12T00:00:00+02:00.000000" string(32) "2017-07-13T15:55:55+02:00.000000" string(32) "2017-07-13T00:00:00+02:00.000000"
Output for 7.1.2
string(32) "2017-07-11T15:55:55+02:00.018045" string(32) "2017-07-12T15:55:55+02:00.018068" string(32) "2017-07-12T00:00:00+02:00.000000" string(32) "2017-07-13T15:55:55+02:00.018091" string(32) "2017-07-13T00:00:00+02:00.000000"
Output for 7.1.1
string(32) "2017-07-11T15:55:55+02:00.005362" string(32) "2017-07-12T15:55:55+02:00.005386" string(32) "2017-07-12T00:00:00+02:00.000000" string(32) "2017-07-13T15:55:55+02:00.005408" string(32) "2017-07-13T00:00:00+02:00.000000"
Output for 7.1.0
string(32) "2017-07-11T15:55:55+02:00.007947" string(32) "2017-07-12T15:55:55+02:00.007971" string(32) "2017-07-12T00:00:00+02:00.000000" string(32) "2017-07-13T15:55:55+02:00.007999" string(32) "2017-07-13T00:00:00+02:00.000000"