3v4l.org

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