3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new DateTime('45 days ago'))->format('d/m/Y'); echo (new DateTime('225 days ago'))->format('d/m/Y');
based on CSaVK
Output for 5.4.10 - 5.4.45, 7.0.20 - 7.2.0
25/10/201528/04/2015
Output for 7.0.6
19/03/201621/09/2015
Output for 7.0.5
18/02/201622/08/2015
Output for 7.0.4
25/01/201629/07/2015
Output for 7.0.3
02/02/201606/08/2015
Output for 7.0.2
07/02/201611/08/2015
Output for 7.0.1
08/02/201612/08/2015
Output for 7.0.0
11/02/201615/08/2015
Output for 5.6.21
18/03/201620/09/2015
Output for 5.6.20
25/02/201629/08/2015
Output for 5.6.19
23/01/201627/07/2015
Output for 5.6.18
30/01/201603/08/2015
Output for 5.6.17
04/02/201608/08/2015
Output for 5.6.16
12/02/201616/08/2015
Output for 5.6.15
13/02/201617/08/2015
Output for 5.6.14
29/02/201602/09/2015
Output for 5.6.13
01/03/201603/09/2015
Output for 5.6.12
06/03/201608/09/2015
Output for 5.6.11
10/03/201612/09/2015
Output for 5.6.10
11/03/201613/09/2015
Output for 5.6.9
13/03/201615/09/2015
Output for 5.6.8
16/03/201618/09/2015
Output for 5.5.35
08/04/201611/10/2015
Output for 5.5.34
26/02/201630/08/2015
Output for 5.5.33
24/01/201628/07/2015
Output for 5.5.32
01/02/201605/08/2015
Output for 5.5.31
05/02/201609/08/2015
Output for 5.5.30
16/02/201620/08/2015
Output for 5.5.29
03/03/201605/09/2015
Output for 5.5.28
07/03/201609/09/2015
Output for 5.5.27
08/03/201610/09/2015
Output for 5.5.26
12/03/201614/09/2015
Output for 5.5.25
15/03/201617/09/2015
Output for 5.5.24
09/04/201612/10/2015
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/lbQCV on line 3
Process exited with code 255.