3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new DateTime(); echo $a->format('Y-m-d\TH:i:s.v\Z');
Output for 7.1.0, 7.3.0rc3
2017-10-24T03:45:47.006Z
Output for 7.1.7 - 7.1.9, 7.3.0beta1
2017-10-24T03:45:47.004Z
Output for 7.1.20 - 7.3.0alpha1
2017-10-24T03:45:47.003Z
Output for 7.1.10
2017-10-24T03:45:47.007Z
Output for 7.1.6
2017-10-24T03:45:47.036Z
Output for 7.1.5
2017-10-24T03:45:47.022Z
Output for 7.1.4
2017-10-24T03:45:47.023Z
Output for hhvm-3.21.3, 7.0.0 - 7.0.24, 7.1.3
2017-10-24T03:45:47.000Z
Output for 7.1.2
2017-10-24T03:45:47.026Z
Output for 7.1.1
2017-10-24T03:45:47.011Z
Output for hhvm-3.22.0
2017-10-24T03:45:48.000Z
Output for 5.6.0 - 5.6.30, hhvm-3.18.5
2017-10-24T03:45:47.vZ