3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $now = new DateTimeImmutable('now', new DateTimeZone('UTC')); $nowString = $now->format('Y-m-d\TH:i:s.u'); $lockUntilString = $now->modify('+' . (string) 1000 . ' ms')->format('Y-m-d\TH:i:s.u'); print $lockUntilString;
based on CkK70
Output for 7.2.0
2017-03-23T21:08:44.004442
Output for 7.1.7
2017-03-23T21:08:44.002404
Output for 7.1.6
2017-03-23T21:08:44.005244
Output for 7.1.5
2017-03-23T21:08:44.005539
Output for 7.1.4
2017-03-23T21:08:44.006118
Output for 7.1.3
2017-03-23T21:08:43.1000000
Output for 7.1.2
2017-03-23T21:08:44.005955
Output for 7.1.1
2017-03-23T21:08:44.002906
Output for 7.1.0
2017-03-23T21:08:44.003135
Output for 5.6.0 - 5.6.30, hhvm-3.12.14 - 3.17.3, 7.0.0 - 7.0.20
2017-03-23T21:08:43.000000