3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //echo (new \DateTime())->format('d-m-Y_H:i:s.u'); //echo time(); //echo date("Y-m-d H:i:s.u"); $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("d-m-Y_H:i:s.u"); // note at point on "u"
Output for 7.2.6
07-07-2017_15:33:59.004684
Output for 7.2.0
07-07-2017_15:33:59.003654
Output for 7.1.10
07-07-2017_15:33:59.003731
Output for 7.1.7
07-07-2017_15:33:59.005186
Output for 7.1.6
07-07-2017_15:33:59.022008
Output for 7.1.5
07-07-2017_15:33:59.025757
Output for 7.1.4
07-07-2017_15:33:59.016865
Output for 7.1.3
07-07-2017_15:33:59.015450
Output for 7.1.2
07-07-2017_15:33:59.016918
Output for 7.1.1
07-07-2017_15:33:59.004448
Output for 7.1.0
07-07-2017_15:33:59.006616
Output for 7.0.20
07-07-2017_15:33:52.006325
Output for 7.0.19
07-07-2017_15:33:59.008920
Output for 7.0.18
07-07-2017_15:33:59.006376
Output for 7.0.17
07-07-2017_15:31:41.008431
Output for 7.0.16
07-07-2017_15:33:59.005763
Output for 5.6.17, 7.0.15
07-07-2017_15:33:59.006628
Output for 7.0.14
07-07-2017_15:33:59.006942
Output for 7.0.13
07-07-2017_15:33:59.006522
Output for 7.0.12
07-07-2017_15:33:59.016455
Output for 7.0.11
07-07-2017_15:33:59.005975
Output for 7.0.10
07-07-2017_15:33:59.006092
Output for 7.0.9
07-07-2017_15:33:59.007014
Output for 7.0.8
07-07-2017_15:33:59.020757
Output for 7.0.7
07-07-2017_15:33:59.008316
Output for 7.0.6
07-07-2017_15:33:59.006409
Output for 7.0.5
07-07-2017_15:33:59.006710
Output for 7.0.4
07-07-2017_15:33:59.005156
Output for 7.0.3
07-07-2017_15:33:59.007885
Output for 7.0.2
07-07-2017_15:33:59.030687
Output for 7.0.1
07-07-2017_15:33:59.005449
Output for 7.0.0
07-07-2017_15:33:59.006458
Output for hhvm-3.15.4
07-07-2017_15:33:59.263331
Output for 5.6.30
07-07-2017_15:33:59.006437
Output for 5.6.29
07-07-2017_15:33:59.006661
Output for 5.6.28
07-07-2017_15:33:59.008337
Output for 5.6.27
07-07-2017_15:33:59.007273
Output for 5.6.26
07-07-2017_15:33:59.006752
Output for 5.6.25
07-07-2017_15:33:59.008955
Output for 5.6.24
07-07-2017_15:33:59.027295
Output for 5.6.23
07-07-2017_15:33:59.007608
Output for 5.6.22
07-07-2017_15:33:59.006932
Output for 5.6.21
07-07-2017_15:33:59.008234
Output for 5.6.20
07-07-2017_15:33:59.005920
Output for 5.6.19
07-07-2017_15:33:59.005402
Output for 5.6.18
07-07-2017_15:33:59.005435
Output for 5.6.16
07-07-2017_15:33:59.010067
Output for 5.6.15
07-07-2017_15:33:59.009397
Output for 5.6.14
07-07-2017_15:33:59.006861
Output for 5.6.13
07-07-2017_15:33:59.007075
Output for 5.6.12
07-07-2017_15:33:59.006990
Output for 5.6.11
07-07-2017_15:33:59.006721
Output for 5.6.10
07-07-2017_15:33:59.006930
Output for 5.6.9
07-07-2017_15:33:59.006647
Output for 5.6.8
07-07-2017_15:33:59.006552
Output for 5.6.7
07-07-2017_15:33:59.007879
Output for 5.6.6
07-07-2017_15:33:59.009190
Output for 5.6.5
07-07-2017_15:33:59.004918
Output for 5.6.4
07-07-2017_15:33:59.007040
Output for 5.6.3
07-07-2017_15:33:59.006675
Output for 5.6.2
07-07-2017_15:33:59.006771
Output for 5.6.1
07-07-2017_15:33:59.007509
Output for 5.6.0
07-07-2017_15:33:59.006684