3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(unserialize(serialize(\DateTime::createFromFormat('U', time()))));
Output for 5.5.14 - 7.3.0rc6
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-09-28 00:14:03.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+00:00" }
Output for 5.5.0 - 5.5.13
object(DateTime)#1 (3) { ["date"]=> string(19) "2016-09-28 00:14:03" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+00:00" }