3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ts1 = strtotime(date('Y-m-d H:i:s')); $ts2 = strtotime('2014-05-05 14:38:06'); $seconds_diff = $ts1 - $ts2; $iNbDaysNotedAfterBuyingProject = ($seconds_diff/3600/ 24); echo $iNbDaysNotedAfterBuyingProject;
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
8.0009259259259