3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dt = new DateTime(); $dt->setISODate(2015, 16); $dt->setTime(0, 0, 0); print $dt->format('Y-m-d H:i:s');
based on 9KW03
Output for 5.2.0 - 5.2.17, 5.3.4 - 7.2.0
2015-04-13 00:00:00
Output for 5.3.0 - 5.3.3
2015-07-24 00:00:00
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/vaSW0 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/vaSW0 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/vaSW0 on line 3