3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump((new DateTimeImmutable())->modify('next day'));
based on Uet53
Output for 7.3.0rc3
object(DateTimeImmutable)#2 (3) { ["date"]=> string(26) "2017-07-12 15:41:10.027546" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.0beta1
object(DateTimeImmutable)#2 (3) { ["date"]=> string(26) "2017-07-12 15:41:10.002564" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.0alpha1
object(DateTimeImmutable)#2 (3) { ["date"]=> string(26) "2017-07-12 15:41:10.003520" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.6
object(DateTimeImmutable)#2 (3) { ["date"]=> string(26) "2017-07-12 15:41:10.004545" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.0
object(DateTimeImmutable)#2 (3) { ["date"]=> string(26) "2017-07-12 15:41:10.005203" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.20
object(DateTimeImmutable)#2 (3) { ["date"]=> string(26) "2017-07-12 15:41:10.003198" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.10
object(DateTimeImmutable)#2 (3) { ["date"]=> string(26) "2017-07-12 15:41:10.004356" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.7
object(DateTimeImmutable)#2 (3) { ["date"]=> string(26) "2017-07-12 15:41:10.002826" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.6
object(DateTimeImmutable)#2 (3) { ["date"]=> string(26) "2017-07-12 15:41:10.006697" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.5
object(DateTimeImmutable)#2 (3) { ["date"]=> string(26) "2017-07-12 15:41:10.005502" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.4
object(DateTimeImmutable)#2 (3) { ["date"]=> string(26) "2017-07-12 15:41:10.063204" ["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)#2 (3) { ["date"]=> string(26) "2017-07-12 15:41:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.2
object(DateTimeImmutable)#2 (3) { ["date"]=> string(26) "2017-07-12 15:41:10.010834" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.1
object(DateTimeImmutable)#2 (3) { ["date"]=> string(26) "2017-07-12 15:41:10.004431" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.0
object(DateTimeImmutable)#2 (3) { ["date"]=> string(26) "2017-07-12 15:41:10.005866" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for hhvm-3.15.4
object(DateTimeImmutable)#3 (1) { ["data":"DateTimeImmutable":private]=> object(DateTime)#4 (3) { ["date"]=> string(26) "2017-07-12 15:41:11.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } }