3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $datum = strtotime("12.11.2012"); $dnes = strtotime('today'); $termin = floor(($datum - $dnes) / (24 * 60 * 60)); echo $termin; ?>
Output for 5.1.0 - 7.1.0
-4
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.0.5
-15661
Output for 5.0.0 - 5.0.2
-15660