3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $startTimeStamp = strtotime("1971/01/01"); $endTimeStamp = date("Y/m/d"); echo $timeDiff = abs($endTimeStamp - $startTimeStamp); $numberDays = $timeDiff/86400; // 86400 seconds in one day // and you might want to convert to integer echo $numberDays = intval($numberDays); ?>
Output for 7.1.0 - 7.3.0rc4
Notice: A non well formed numeric value encountered in /in/FumPS on line 6 31530386364
Output for 4.3.0 - 7.0.20
31530386364