3v4l.org

run code in 300+ PHP versions simultaneously
<?php $expira = date('Y-m-d', strtotime('2013-04-01 + 182 days')); echo strtotime(date('Y-m-d')). '<' ; $diff = strtotime($expira) - strtotime(date('Y-m-d')); $daysleft=floor($diff/(60*60*24)); echo "$daysleft days left"; ?>

preferences:
32.55 ms | 402 KiB | 5 Q