3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $reg_date = '2014-05-25'; $expire = date('Y-m-d', strtotime($reg_date)); $diff = strtotime(date('Y-m-d')) - strtotime($expire); $daysleft = floor( $diff / (60 * 60 * 24) ); var_dump($daysleft);
Output for 4.3.0 - 7.1.0
float(0)