3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ts1 = strtotime(date('Y-m-d H:i:s')); $ts2 = strtotime('2014-05-06 12:20:06'); $seconds_diff = $ts1 - $ts2; $iNbDaysNotedAfterBuyingProject = ($seconds_diff/3600/ 24); echo $iNbDaysNotedAfterBuyingProject;

preferences:
33.95 ms | 402 KiB | 5 Q