3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date( 'd-m-Y', strtotime('2015-03-07')) - date( 'd-m-Y', strtotime("+ 7 days") );
based on LXrbD
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/l4145 on line 2 Notice: A non well formed numeric value encountered in /in/l4145 on line 2 -9
Output for 4.3.0 - 5.0.5, 5.1.2 - 7.0.14
-9
Output for 5.1.0 - 5.1.1
6