3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $expira = date('Y-m-d', strtotime('2014-04-01 + 182 days')); echo $expira; $diff = $expira - strtotime(date('Y-m-d')); $daysleft=floor($diff/(60*60*24)); echo "$daysleft days left"; ?>
Output for 7.1.0
2014-09-30 Notice: A non well formed numeric value encountered in /in/rANXP on line 4 -16165 days left
Output for 4.3.0 - 5.0.5, 5.1.2 - 7.0.14
2014-09-30-16165 days left
Output for 5.1.0 - 5.1.1
1970-01-01-16165 days left