3v4l.org - online PHP & HHVM shell, execute code in 100+ different versions!

<?php $a = new DateTime('0000-01-00'); echo $a->format('j M Y \i\s \a l');
Output for 5.2.6 - 5.6.3, php7@20140507 - 20141101, hhvm-3.2.0 - 3.4.0
31 Dec -0001 is a Saturday
Output for hhvm-3.0.1 - 3.1.0
Strict Warning: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /in/9HTlo on line 3 #0 DateTime->__construct(), called at [/in/9HTlo:3] #0 DateTime->__construct(), called at [/in/9HTlo:3] Strict Warning: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /in/9HTlo on line 3 #0 DateTime->__construct(), called at [/in/9HTlo:3] #0 DateTime->__construct(), called at [/in/9HTlo:3] 31 Dec -0001 is a Saturday
Output for 5.2.4 - 5.2.5
31 Dec -0001 is a Unknown
Output for 5.2.0 - 5.2.3
31 Dec 1999 is a Friday
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/9HTlo 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/9HTlo 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/9HTlo on line 3