3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Get current time $date1 = mktime(0,0,0,07,01,2014); // Get the timestamp of 2006 October 20 $date2 = mktime(0,0,0,07,05,2014); $dateDiff = $date1 - $date2; $fullDays = floor($dateDiff/(60*60*24)); echo "Differernce is $fullDays days";
Output for 4.3.0 - 7.1.0
Differernce is -4 days