3v4l.org

run code in 300+ PHP versions simultaneously
<?php // indicate the start date here $startdate = '2014-14-01'; // indicate the end date here $enddate = '2014-14-09'; $timestamp_start = strtotime($startdate); $timestamp_end = strtotime($enddate); $difference = abs($timestamp_end - $timestamp_start); // that's it! echo 'Seconds: '.$difference/86400;

preferences:
51.84 ms | 402 KiB | 5 Q