Bugs & Features
<?php $dt = new DateTime; for ($w = 52; $w <= 54; $w++) { $dt->setISODate(2013, $w); echo $dt->format('Y-m-d W') . "\n\n"; }
Output for 5.2.0 - 7.0.0beta1, hhvm-3.3.1 - 3.8.0
2013-12-23 52 2013-12-30 01 2014-01-06 02
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/5Dg31 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/5Dg31 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/5Dg31 on line 3