3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $begin = new DateTime('-12 Week'); $end = new DateTime(today); while ($begin <= $end) { echo $begin->format('M'), "\n"; $begin->modify('first day of next month'); }
based on Zn59D
Output for 7.2.0 - 7.3.0beta1
Warning: Use of undefined constant today - assumed 'today' (this will throw an Error in a future version of PHP) in /in/2F4pS on line 3 Nov Dec Jan Feb
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.1.20
Notice: Use of undefined constant today - assumed 'today' in /in/2F4pS on line 3 Nov Dec Jan Feb