3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = new DateTime('000000-00-01'); echo $a->format('j M Y \i\s \a l');
Output for 5.6.28, 7.0.14 - 7.1.0
24 Mar 2014 is a Monday
Output for 7.0.6
21 May 2016 is a Saturday
Output for 7.0.5
3 Apr 2016 is a Sunday
Output for 7.0.4
10 Mar 2016 is a Thursday
Output for 7.0.3
18 Mar 2016 is a Friday
Output for 7.0.2
23 Mar 2016 is a Wednesday
Output for 7.0.1
24 Mar 2016 is a Thursday
Output for 7.0.0
27 Mar 2016 is a Sunday
Output for hhvm-3.12.0
13 Mar 2016 is a Sunday
Output for hhvm-3.10.0
31 Mar 2016 is a Thursday
Output for 5.6.21
2 May 2016 is a Monday
Output for 5.6.20
10 Apr 2016 is a Sunday
Output for 5.6.19
8 Mar 2016 is a Tuesday
Output for 5.6.18
15 Mar 2016 is a Tuesday
Output for 5.6.17
20 Mar 2016 is a Sunday
Output for 5.6.16
28 Mar 2016 is a Monday
Output for 5.6.15
29 Mar 2016 is a Tuesday
Output for 5.6.14
14 Apr 2016 is a Thursday
Output for 5.6.13
15 Apr 2016 is a Friday
Output for 5.6.12
20 Apr 2016 is a Wednesday
Output for 5.6.11
24 Apr 2016 is a Sunday
Output for 5.6.10
25 Apr 2016 is a Monday
Output for 5.6.9
27 Apr 2016 is a Wednesday
Output for 5.6.8
30 Apr 2016 is a Saturday
Output for 5.5.35
23 May 2016 is a Monday
Output for 5.5.34
11 Apr 2016 is a Monday
Output for 5.5.33
9 Mar 2016 is a Wednesday
Output for 5.5.32
17 Mar 2016 is a Thursday
Output for 5.5.31
21 Mar 2016 is a Monday
Output for 5.5.30
1 Apr 2016 is a Friday
Output for 5.5.29
17 Apr 2016 is a Sunday
Output for 5.5.28
21 Apr 2016 is a Thursday
Output for 5.5.27
22 Apr 2016 is a Friday
Output for 5.5.26
26 Apr 2016 is a Tuesday
Output for 5.5.25
29 Apr 2016 is a Friday
Output for 5.5.24
24 May 2016 is a Tuesday
Output for 5.2.0 - 5.4.45
27 Dec 2015 is a Sunday
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/UF7et 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/UF7et 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/UF7et on line 3