3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xmas = new DateTime('+24 day december this year'); echo $xmas->format('Ymd');
based on jWfQt
Output for 5.3.19 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
20151226
Output for 7.0.5 - 7.0.6
20161227
Output for 5.6.20, 7.0.4
20170103
Output for 7.0.3
20170111
Output for 7.0.2
20170116
Output for 5.5.24, 5.6.11, 7.0.1
20170117
Output for 5.6.9, 7.0.0
20170120
Output for 5.6.14, 5.6.21
20161226
Output for 5.6.19
20170101
Output for 5.6.13, 5.6.18
20170108
Output for 5.6.17
20170112
Output for 5.5.25, 5.6.16
20170121
Output for 5.6.15
20170122
Output for 5.6.12
20170113
Output for 5.6.10
20170118
Output for 5.6.8
20170123
Output for 5.5.27, 5.5.35
20170115
Output for 5.5.34
20170104
Output for 5.5.33
20170102
Output for 5.5.29, 5.5.32
20170110
Output for 5.5.28, 5.5.31
20170114
Output for 5.5.30
20161225
Output for 5.5.26
20170119