3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dt = new DateTime('now', new DateTimezone('Europe/Berlin')); echo $dt->format('F j, Y, g:i a');
Output for 5.2.0 - 5.3.27, 5.4.0 - 5.4.20, 5.6.28, 7.0.14 - 7.1.0
October 28, 2013, 10:14 am
Output for 7.0.6
May 3, 2016, 3:18 pm
Output for 7.0.5
April 3, 2016, 3:54 am
Output for 7.0.4
March 10, 2016, 3:17 pm
Output for 7.0.3
March 18, 2016, 3:56 pm
Output for 7.0.2
March 22, 2016, 10:03 pm
Output for 7.0.1
March 24, 2016, 2:25 am
Output for 7.0.0
March 27, 2016, 4:25 am
Output for hhvm-3.12.0
March 30, 2016, 11:59 am
Output for hhvm-3.10.0
March 30, 2016, 8:38 pm
Output for 5.6.21
May 2, 2016, 10:29 am
Output for 5.6.20
April 10, 2016, 2:50 am
Output for 5.6.19
March 7, 2016, 11:00 pm
Output for 5.6.18
March 15, 2016, 7:53 am
Output for 5.6.17
March 19, 2016, 7:51 pm
Output for 5.6.16
March 28, 2016, 5:14 am
Output for 5.6.15
March 29, 2016, 6:06 am
Output for 5.6.14
April 2, 2016, 8:08 am
Output for 5.6.13
April 15, 2016, 12:20 pm
Output for 5.6.12
April 20, 2016, 2:40 am
Output for 5.6.11
April 23, 2016, 9:15 am
Output for 5.6.10
April 25, 2016, 11:08 am
Output for 5.6.9
April 27, 2016, 4:14 pm
Output for 5.6.8
April 30, 2016, 12:51 am
Output for 5.5.35
May 22, 2016, 3:08 pm
Output for 5.5.34
April 11, 2016, 5:06 am
Output for 5.5.33
March 9, 2016, 2:06 am
Output for 5.5.32
March 17, 2016, 11:23 am
Output for 5.5.31
March 20, 2016, 10:36 pm
Output for 5.5.30
April 1, 2016, 8:00 am
Output for 5.5.29
April 17, 2016, 2:39 am
Output for 5.5.28
April 21, 2016, 5:51 am
Output for 5.5.27
April 22, 2016, 7:53 am
Output for 5.5.26
April 26, 2016, 1:46 pm
Output for 5.5.25
April 28, 2016, 8:22 pm
Output for 5.5.24
May 24, 2016, 3:23 am
Output for 5.4.45
September 9, 2015, 3:09 am
Output for 5.4.39 - 5.4.44
September 4, 2015, 9:20 am
Output for 5.4.38
March 3, 2015, 6:33 am
Output for 5.4.34 - 5.4.37
February 11, 2015, 3:29 pm
Output for 5.3.28 - 5.3.29, 5.4.21 - 5.4.32
September 10, 2014, 8:27 pm
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/dCiWQ on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/dCiWQ on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/dCiWQ on line 2