3v4l.org

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