3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $lastLockUpdate = \DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u', '2018-04-30T16:07:53.123456'); echo $lastLockUpdate->format('Y-m-d\TH:i:s.u'); $updateLockThreshold = new \DateInterval('PT4000S'); $threshold = $lastLockUpdate->add($updateLockThreshold); echo "\n"; echo $threshold->format('Y-m-d\TH:i:s.u');
based on aBjB3
Output for 5.6.0 - 5.6.38, hhvm-3.18.5 - 3.22.0, 7.0.33 - 7.3.0
2018-04-30T16:07:53.123456 2018-04-30T17:14:33.123456