3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new DateTime('180 days ago'))->format('d/m/Y'); echo (new DateTime('225 days ago'))->format('d/m/Y');
Output for 5.4.10 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
12/06/201528/04/2015
Output for 7.0.6
05/11/201521/09/2015
Output for 7.0.5
06/10/201522/08/2015
Output for 7.0.4
12/09/201529/07/2015
Output for 7.0.3
20/09/201506/08/2015
Output for 7.0.2
25/09/201511/08/2015
Output for 7.0.1
26/09/201512/08/2015
Output for 7.0.0
29/09/201515/08/2015
Output for 5.6.21
04/11/201520/09/2015
Output for 5.6.20
13/10/201529/08/2015
Output for 5.6.19
10/09/201527/07/2015
Output for 5.6.18
17/09/201503/08/2015
Output for 5.6.17
22/09/201508/08/2015
Output for 5.6.16
30/09/201516/08/2015
Output for 5.6.15
01/10/201517/08/2015
Output for 5.6.14
17/10/201502/09/2015
Output for 5.6.13
18/10/201503/09/2015
Output for 5.6.12
23/10/201508/09/2015
Output for 5.6.11
27/10/201512/09/2015
Output for 5.6.10
28/10/201513/09/2015
Output for 5.6.9
30/10/201515/09/2015
Output for 5.6.8
02/11/201518/09/2015
Output for 5.5.35
25/11/201511/10/2015
Output for 5.5.34
14/10/201530/08/2015
Output for 5.5.33
11/09/201528/07/2015
Output for 5.5.32
19/09/201505/08/2015
Output for 5.5.31
23/09/201509/08/2015
Output for 5.5.30
04/10/201520/08/2015
Output for 5.5.29
20/10/201505/09/2015
Output for 5.5.28
24/10/201509/09/2015
Output for 5.5.27
25/10/201510/09/2015
Output for 5.5.26
29/10/201514/09/2015
Output for 5.5.25
01/11/201517/09/2015
Output for 5.5.24
26/11/201512/10/2015
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/NBgkd on line 3
Process exited with code 255.