3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dt = new DateTime('@' . '1412434799.001000'); var_dump($dt);
based on 4o78j
Output for 7.1.0 - 7.2.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2014-10-04 14:59:59.001000" ["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-04 15:09:59.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-04 15:09:59" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+00:00" }