3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $f1 = date("Ymd"); $f2 = date("Ymd", strtotime("-7 days")); echo " $f2\n-$f1\n--------\n".($f1-$f2);
based on 3vmjj
Output for 4.3.0 - 7.1.0
20140915 -20140922 -------- 7