3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $creationTime = \DateTimeImmutable::createFromFormat('Y-m-d H:i:s', '2017-07-10 10:00:00'); $expirationTime = \DateTimeImmutable::createFromFormat('Y-m-d H:i:s', '2017-07-10 11:59:00'); var_dump($creationTime->diff($expirationTime)->format('%h %m %s minutes')); // Expecting at least 59....
based on bkuPU
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
string(13) "1 0 0 minutes"