3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $enddate = new DateTime(); $interval = new DateInterval('P12M'); $enddate->add($interval); echo $enddate->format('Y-m-d hh:MM:ss');
based on 2YQ4I
Output for 5.6.28, 7.0.20 - 7.2.0
2016-11-02 0606:NovNov:0404
Output for 7.0.6
2017-05-03 0606:MayMay:3939
Output for 7.0.5
2017-04-03 0606:AprApr:1212
Output for 7.0.4
2017-03-10 0606:MarMar:3939
Output for 7.0.3
2017-03-18 0707:MarMar:4545
Output for 7.0.2
2017-03-23 0101:MarMar:5757
Output for 7.0.1
2017-03-24 0505:MarMar:3535
Output for 7.0.0
2017-03-27 0707:MarMar:0808
Output for 5.6.21
2017-05-02 0101:MayMay:2828
Output for 5.6.20
2017-04-10 0505:AprApr:2222
Output for 5.6.19
2017-03-08 0202:MarMar:0808
Output for 5.6.18
2017-03-15 1111:MarMar:5353
Output for 5.6.17
2017-03-19 1010:MarMar:5757
Output for 5.6.16
2017-03-28 0707:MarMar:0909
Output for 5.6.15
2017-03-29 0808:MarMar:5959
Output for 5.6.14
2017-04-02 1010:AprApr:3131
Output for 5.6.13
2017-04-15 0303:AprApr:2424
Output for 5.6.12
2017-04-20 0505:AprApr:1313
Output for 5.6.11
2017-04-24 1111:AprApr:0909
Output for 5.6.10
2017-04-25 0101:AprApr:2222
Output for 5.6.9
2017-04-27 0707:AprApr:2020
Output for 5.6.8
2017-04-30 0404:AprApr:2020
Output for 5.5.35
2017-05-22 0707:MayMay:3535
Output for 5.5.34
2017-04-11 0707:AprApr:2121
Output for 5.5.33
2017-03-09 0505:MarMar:2424
Output for 5.5.32
2017-03-17 0202:MarMar:3636
Output for 5.5.31
2017-03-21 0101:MarMar:3131
Output for 5.5.30
2017-04-01 1010:AprApr:4040
Output for 5.5.29
2017-04-17 0505:AprApr:1515
Output for 5.5.28
2017-04-21 0808:AprApr:4040
Output for 5.5.27
2017-04-22 1010:AprApr:4141
Output for 5.5.26
2017-04-26 0404:AprApr:4040
Output for 5.5.25
2017-04-28 1111:AprApr:2727
Output for 5.5.24
2017-05-24 0404:MayMay:3030
Output for 5.4.42 - 5.4.45
2016-11-02 0606:NovNov:1414
Output for 5.4.35 - 5.4.41
2016-11-02 0606:NovNov:1515
Output for 5.4.28 - 5.4.34
2016-11-02 0606:NovNov:1616
Output for 5.4.21 - 5.4.27
2016-11-02 0606:NovNov:1717
Output for 5.4.14 - 5.4.20
2016-11-02 0606:NovNov:1818
Output for 5.4.4 - 5.4.13
2016-11-02 0606:NovNov:1919
Output for 5.3.25 - 5.4.3
2016-11-02 0606:NovNov:2020
Output for 5.3.19 - 5.3.24
2016-11-02 0606:NovNov:2121