3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(new DateTime("now +7 g"));

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
object(DateTime)#1 (3) { ["date"]=> string(26) "2014-04-15 07:40:15.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+07:00" }
Output for Array change keys
object(DateTime)#1 (3) { ["date"]=> string(26) "2014-04-15 07:40:15.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+07:00" }
Output for Lexical anon
object(DateTime)#1 (3) { ["date"]=> string(26) "2014-04-15 07:40:15.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+07:00" }

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page