3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime('now +1 day'); //echo $date->format('Y-m-d H:i:s'); echo $date->format('H:i \o\n\ \t\h\e jS F Y');
Output for 5.2.11 - 5.3.28, 5.4.0 - 5.4.25, 5.6.28, 7.0.14 - 7.1.0
09:52 on the 7th March 2014
Output for 7.0.6
02:10 on the 4th May 2016
Output for 7.0.5
15:25 on the 3rd April 2016
Output for 7.0.4
00:53 on the 11th March 2016
Output for 7.0.3
01:05 on the 19th March 2016
Output for 7.0.2
11:41 on the 22nd March 2016
Output for 7.0.1
11:52 on the 24th March 2016
Output for 7.0.0
14:24 on the 27th March 2016
Output for 5.6.21
21:12 on the 2nd May 2016
Output for 5.6.20
10:40 on the 10th April 2016
Output for 5.6.19
23:09 on the 7th March 2016
Output for 5.6.18
10:44 on the 15th March 2016
Output for 5.6.17
05:34 on the 20th March 2016
Output for 5.6.16
16:09 on the 28th March 2016
Output for 5.6.15
17:02 on the 29th March 2016
Output for 5.6.14
19:41 on the 2nd April 2016
Output for 5.6.13
23:29 on the 15th April 2016
Output for 5.6.12
12:37 on the 20th April 2016
Output for 5.6.11
19:53 on the 23rd April 2016
Output for 5.6.10
21:33 on the 25th April 2016
Output for 5.6.9
02:42 on the 28th April 2016
Output for 5.6.8
10:17 on the 30th April 2016
Output for 5.6.7
20:58 on the 25th May 2016
Output for 5.5.35
00:32 on the 23rd May 2016
Output for 5.5.34
16:36 on the 11th April 2016
Output for 5.5.33
11:47 on the 9th March 2016
Output for 5.5.32
17:28 on the 17th March 2016
Output for 5.5.31
08:27 on the 21st March 2016
Output for 5.5.30
19:04 on the 1st April 2016
Output for 5.5.29
13:36 on the 17th April 2016
Output for 5.5.28
15:51 on the 21st April 2016
Output for 5.5.27
18:25 on the 22nd April 2016
Output for 5.5.26
23:51 on the 26th April 2016
Output for 5.5.25
05:59 on the 29th April 2016
Output for 5.5.24
13:30 on the 1st May 2016
Output for 5.4.44 - 5.4.45
03:13 on the 15th September 2015
Output for 5.4.41 - 5.4.43
23:38 on the 27th July 2015
Output for 5.4.39 - 5.4.40
14:50 on the 11th May 2015
Output for 5.4.38
12:35 on the 3rd March 2015
Output for 5.4.34 - 5.4.37
07:50 on the 9th February 2015
Output for 5.3.29, 5.4.26 - 5.4.27, 5.4.31 - 5.4.32
04:24 on the 8th September 2014
Output for 5.4.28 - 5.4.30
04:23 on the 8th September 2014
Output for 5.2.0 - 5.2.10
09:53 on the 7th March 2014
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/Pj0Ka 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/Pj0Ka 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/Pj0Ka on line 2