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.6.1
2013-12-23 52 2013-12-30 01 2014-01-06 02
Output for 4.3.8, 4.4.4, 5.0.1 - 5.1.4, 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.3.7, 4.3.9 - 4.4.3, 4.4.5 - 5.0.0, 5.1.5
Fatal error: Cannot instantiate non-existent class: datetime in /in/5Dg31 on line 3
Process exited with code 255.
Output for 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/5Dg31 on line 3