3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $f1 = date("d-m-Y"); $f2 = date("Ymd", strtotime("-7 days")); echo " $f2\n-$f1\n--------\n".($f1-$f2);
based on qEuE0
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/hs2l5 on line 4 20140915 -22-09-2014 -------- -20140893
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.0.14
20140915 -22-09-2014 -------- -20140893