3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // http://gathering.tweakers.net/forum/list_messages/1644050 $date = new DateTime('2015-01-01'); // Volgens http://www.epochconverter.com/date-and-time/weeknumbers-by-year.php zou het nummer 1 moeten zijn. echo $date->format('W y');
based on qocHD
Output for 5.2.0 - 7.2.0
01 15
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/QfEhF on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/QfEhF on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/QfEhF on line 5