3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime(); $date->sub(new DateInterval('P10D')); echo $date->format('Y-m-d') . "\n";
Output for 5.4.0 - 5.6.30, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.2.0
2017-10-21