3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(unserialize(serialize(\DateTime::createFromFormat('U', time()))));
Output for 5.5.14 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.6 - 7.2.25, 7.3.0 - 7.3.12, 7.4.0
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" }

preferences:
108.91 ms | 402 KiB | 122 Q