3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $datetime1 = new \DateTime('2018-12-01 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 bb9SW
Output for 5.6.38 - 7.3.0rc3
+08-