3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo date("y/m/d i:s:u", 972); $t = microtime(true); $micro = sprintf("%06d",($t - floor($t)) * 1000000); $d = new DateTime( date('Y-m-d H:i:s.'.$micro,$t) ); print $d->format("Y-m-d H:i:s.u"); // note at point on "u"