3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new \DateTime())->format('Y-m-d H:i:s.u');
based on LjGlG
Output for 7.2.8
2017-07-11 15:54:34.047624
Output for 7.2.6
2017-07-11 15:54:34.004538
Output for 7.2.0
2017-07-11 15:54:34.004177
Output for 7.1.20
2017-07-11 15:54:34.064678
Output for 7.1.10
2017-07-11 15:54:34.002760
Output for 7.1.7
2017-07-11 15:54:34.005004
Output for 7.1.6
2017-07-11 15:54:34.030459
Output for 7.1.5
2017-07-11 15:54:34.016764
Output for 7.1.4
2017-07-11 15:54:34.018058
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.0.20, 7.1.3
2017-07-11 15:54:34.000000
Output for 7.1.2
2017-07-11 15:54:34.018832
Output for 7.1.1
2017-07-11 15:54:34.004979
Output for 7.1.0
2017-07-11 15:54:34.005066