3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function calcDays($startdate, $enddate) { $first = $startdate < $enddate ? $startdate : $enddate; $second = $startdate < $enddate ? $enddate : $startdate; return $second - $first; } echo calcDays(1388385927, 1388390027);
Output for 4.3.0 - 7.1.0
4100