3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $startTimeStamp = strtotime("1971/01/01"); $endTimeStamp = date("Y/m/d"); $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.2.0
Notice: A non well formed numeric value encountered in /in/3LK5X on line 6 364
Output for 4.3.0 - 7.0.20
364