3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $datetime1 = new \DateTime('2018-10-30 00:00:00.000000'); $datetime2 = new \DateTime(); $interval = $datetime2->diff($datetime1); $diff = $interval->format('%R%H'); echo $diff . '-'; if($diff <= 0){ echo 'recupere'; }
based on uPVtl
Output for 5.6.38 - 7.3.0rc3
-15-recupere