3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new DateTime("180 days ago"))->format('Y-m-d 00:00:00');
Output for 5.4.10 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
2015-06-12 00:00:00
Output for 7.0.6
2015-11-05 00:00:00
Output for 7.0.5
2015-10-06 00:00:00
Output for 7.0.4
2015-09-12 00:00:00
Output for 7.0.3
2015-09-20 00:00:00
Output for 7.0.2
2015-09-25 00:00:00
Output for 7.0.1
2015-09-26 00:00:00
Output for 7.0.0
2015-09-29 00:00:00
Output for 5.6.21
2015-11-04 00:00:00
Output for 5.6.20
2015-10-13 00:00:00
Output for 5.6.19
2015-09-10 00:00:00
Output for 5.6.18
2015-09-17 00:00:00
Output for 5.6.17
2015-09-22 00:00:00
Output for 5.6.16
2015-09-30 00:00:00
Output for 5.6.15
2015-10-01 00:00:00
Output for 5.6.14
2015-10-17 00:00:00
Output for 5.6.13
2015-10-18 00:00:00
Output for 5.6.12
2015-10-23 00:00:00
Output for 5.6.11
2015-10-27 00:00:00
Output for 5.6.10
2015-10-28 00:00:00
Output for 5.6.9
2015-10-30 00:00:00
Output for 5.6.8
2015-11-02 00:00:00
Output for 5.5.35
2015-11-25 00:00:00
Output for 5.5.34
2015-10-14 00:00:00
Output for 5.5.33
2015-09-11 00:00:00
Output for 5.5.32
2015-09-19 00:00:00
Output for 5.5.31
2015-09-23 00:00:00
Output for 5.5.30
2015-10-04 00:00:00
Output for 5.5.29
2015-10-20 00:00:00
Output for 5.5.28
2015-10-24 00:00:00
Output for 5.5.27
2015-10-25 00:00:00
Output for 5.5.26
2015-10-29 00:00:00
Output for 5.5.25
2015-11-01 00:00:00
Output for 5.5.24
2015-11-26 00:00:00
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/MoRSt on line 3
Process exited with code 255.