3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dt = new DateTime('@' . '1412434799.123456'); var_dump($dt);
based on aSEDc
Output for 7.1.0 - 7.2.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2014-10-04 14:59:59.123456" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+00:00" }
Output for 5.4.30 - 7.0.20
object(DateTime)#1 (3) { ["date"]=> string(26) "2014-10-05 03:34:55.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+00:00" }
Output for 5.3.18 - 5.4.29
object(DateTime)#1 (3) { ["date"]=> string(19) "2014-10-05 03:34:55" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+00:00" }