3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(new \DateTimeImmutable('+7 DAYS'));
based on YYUdC
Output for 7.3.0rc3
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2017-07-18 11:53:45.032379" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.0beta1
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2017-07-18 11:53:45.002387" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.0alpha1
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2017-07-18 11:53:45.002706" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.11
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2017-07-18 11:53:45.003509" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.6
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2017-07-18 11:53:45.004484" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.0
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2017-07-18 11:53:45.004008" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.20
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2017-07-18 11:53:45.003486" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.10
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2017-07-18 11:53:45.003632" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.7
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2017-07-18 11:53:45.004680" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.6
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2017-07-18 11:53:45.021580" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.5
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2017-07-18 11:53:45.035745" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.4
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2017-07-18 11:53:45.023265" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.0.20, 7.1.3
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2017-07-18 11:53:45.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.2
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2017-07-18 11:53:45.033253" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.1
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2017-07-18 11:53:45.007207" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.0
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2017-07-18 11:53:45.013812" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for hhvm-3.15.4
object(DateTimeImmutable)#1 (1) { ["data":"DateTimeImmutable":private]=> object(DateTime)#2 (3) { ["date"]=> string(26) "2017-07-18 11:53:45.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }