3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // https://bugs.php.net/bug.php?id=73247 $a = new DateTimeImmutable; var_dump($a);
based on SopVG
Output for 7.3.0beta1
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2016-12-06 23:11:18.002533" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.3.0alpha1
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2016-12-06 23:11:18.003500" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.6
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2016-12-06 23:11:18.003505" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.2.0
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2016-12-06 23:11:18.005543" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.20
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2016-12-06 23:11:18.002949" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.10
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2016-12-06 23:11:18.003718" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.7
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2016-12-06 23:11:18.002775" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.6
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2016-12-06 23:11:18.006953" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.5
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2016-12-06 23:11:18.010951" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.0
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2016-12-06 23:11:18.004560" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.0 - 7.0.20
object(DateTimeImmutable)#1 (3) { ["date"]=> string(26) "2016-12-06 23:11:18.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }