3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new \DateTime())->format('Y-m-d H:i:s.u'); json_encode(\DateTime::createFromFormat('Y-m-d H:i:s.u','2016-07-04 00:00:00.000000'));
based on qMXYfA
Output for 7.3.0rc3
2017-07-11 16:04:15.021194
Output for 7.3.0beta1
2017-07-11 16:04:15.003042
Output for 7.3.0alpha1
2017-07-11 16:04:15.003368
Output for 7.2.6
2017-07-11 16:04:15.002417
Output for 7.2.0
2017-07-11 16:04:15.004590
Output for 7.1.20
2017-07-11 16:04:15.002487
Output for 7.1.10
2017-07-11 16:04:15.004718
Output for 7.1.7
2017-07-11 16:04:15.006360
Output for 7.1.6
2017-07-11 16:04:15.023825
Output for 7.1.5
2017-07-11 16:04:15.040532
Output for 7.1.4
2017-07-11 16:04:15.030266
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.0.20, 7.1.3
2017-07-11 16:04:15.000000
Output for 7.1.2
2017-07-11 16:04:15.026086
Output for 7.1.1
2017-07-11 16:04:15.006087
Output for 7.1.0
2017-07-11 16:04:15.007622
Output for hhvm-3.15.4
2017-07-11 16:04:16.000000