3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dtA = new DateTime("02-12-2015 12:35am"); $dtB = new DateTime('now'); $diff = $dtA->diff($dtB); if ( ( ($diff->days * 24 ) * 60 ) + ( $diff->i ) > 1440) echo "24 hours has passed."; else echo "has not reached the 24 hour mark";
based on po1bM
Output for 5.3.20 - 5.6.38, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.2.11
has not reached the 24 hour mark