3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime(); $date->sub(new DateInterval('P10D')); echo $date->format('d/m/Y');
Output for 5.6.28, 7.0.14 - 7.1.0
17/03/2014
Output for 7.0.6
23/04/2016
Output for 7.0.5
24/03/2016
Output for 7.0.4
29/02/2016
Output for 7.0.3
08/03/2016
Output for 7.0.2
12/03/2016
Output for 7.0.1
14/03/2016
Output for 7.0.0
17/03/2016
Output for 5.6.21
22/04/2016
Output for 5.6.20
31/03/2016
Output for 5.6.19
26/02/2016
Output for 5.6.18
05/03/2016
Output for 5.6.17
09/03/2016
Output for 5.6.16
18/03/2016
Output for 5.6.15
19/03/2016
Output for 5.6.14
23/03/2016
Output for 5.6.13
05/04/2016
Output for 5.6.12
10/04/2016
Output for 5.6.11
13/04/2016
Output for 5.6.10
15/04/2016
Output for 5.6.9
17/04/2016
Output for 5.6.8
19/04/2016
Output for 5.5.35
12/05/2016
Output for 5.5.34
01/04/2016
Output for 5.5.33
28/02/2016
Output for 5.5.32
07/03/2016
Output for 5.5.31
10/03/2016
Output for 5.5.30
22/03/2016
Output for 5.5.29
07/04/2016
Output for 5.5.28
11/04/2016
Output for 5.5.27
12/04/2016
Output for 5.5.26
16/04/2016
Output for 5.5.25
18/04/2016
Output for 5.5.24
14/05/2016
Output for 5.3.7 - 5.4.45
28/10/2015