3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dt = new DateTime('now', new DateTimezone('Asia/Dhaka')); echo $dt->format('F j, Y, g:i a');
Output for 5.2.0 - 5.2.9, 5.2.11, 5.2.14 - 5.2.17, 5.3.3 - 5.3.27, 5.4.0 - 5.4.20, 5.6.28, 7.0.14 - 7.1.0
October 28, 2013, 3:12 pm
Output for 7.0.6
May 3, 2016, 9:10 am
Output for 7.0.5
April 2, 2016, 10:18 pm
Output for 7.0.4
March 10, 2016, 9:09 am
Output for 7.0.3
March 18, 2016, 9:29 am
Output for 7.0.2
March 21, 2016, 7:56 pm
Output for 7.0.1
March 23, 2016, 8:34 pm
Output for 7.0.0
March 26, 2016, 10:24 pm
Output for hhvm-3.12.0
March 11, 2016, 4:12 pm
Output for hhvm-3.10.0
March 30, 2016, 5:05 am
Output for 5.6.21
May 2, 2016, 4:14 am
Output for 5.6.20
April 9, 2016, 5:32 pm
Output for 5.6.19
March 7, 2016, 8:33 am
Output for 5.6.18
March 14, 2016, 10:09 pm
Output for 5.6.17
March 19, 2016, 1:53 pm
Output for 5.6.16
March 27, 2016, 11:10 pm
Output for 5.6.15
March 29, 2016, 12:04 am
Output for 5.6.14
April 2, 2016, 2:35 am
Output for 5.6.13
April 15, 2016, 6:35 am
Output for 5.6.12
April 19, 2016, 7:53 pm
Output for 5.6.11
April 23, 2016, 3:00 am
Output for 5.6.10
April 25, 2016, 4:38 am
Output for 5.6.9
April 27, 2016, 9:51 am
Output for 5.6.8
April 29, 2016, 5:39 pm
Output for 5.6.7
May 25, 2016, 6:24 am
Output for 5.5.35
May 22, 2016, 8:01 am
Output for 5.5.34
April 10, 2016, 11:30 pm
Output for 5.5.33
March 8, 2016, 8:05 pm
Output for 5.5.32
March 17, 2016, 1:53 am
Output for 5.5.31
March 20, 2016, 4:45 pm
Output for 5.5.30
April 1, 2016, 2:05 am
Output for 5.5.29
April 16, 2016, 8:40 pm
Output for 5.5.28
April 20, 2016, 11:04 pm
Output for 5.5.27
April 22, 2016, 1:26 am
Output for 5.5.26
April 26, 2016, 7:13 am
Output for 5.5.25
April 28, 2016, 1:11 pm
Output for 5.5.24
May 23, 2016, 8:04 pm
Output for 5.4.44 - 5.4.45
September 11, 2015, 11:18 pm
Output for 5.4.43
July 19, 2015, 3:56 pm
Output for 5.4.42
July 8, 2015, 8:01 pm
Output for 5.4.41
May 26, 2015, 8:53 am
Output for 5.4.39 - 5.4.40
May 2, 2015, 7:24 am
Output for 5.4.38
March 1, 2015, 12:29 am
Output for 5.4.36 - 5.4.37
February 5, 2015, 11:11 am
Output for 5.4.34 - 5.4.35
November 16, 2014, 4:28 am
Output for 5.3.28 - 5.3.29, 5.4.21 - 5.4.32
September 2, 2014, 10:48 pm
Output for 5.2.10, 5.2.12 - 5.2.13, 5.3.0 - 5.3.2
October 28, 2013, 4:12 pm
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/X3bLE 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/X3bLE 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/X3bLE on line 2