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('%m minutes')); // Expecting at least 59....
based on Nj1ch
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
string(9) "0 minutes"