3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $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" var_dump($d->format('u'));
Output for 7.3.0rc3
2018-10-25 05:34:41.004371string(6) "004371"