3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime('now'); $date->modify('+1h'); echo $date->format('h:m:s d-m-Y');
Output for 5.6.28, 7.0.12 - 7.1.0
09:05:02 08-05-2013
Output for 7.0.6
12:05:59 03-05-2016
Output for 7.0.5
02:04:38 02-04-2016
Output for 7.0.4
11:03:21 09-03-2016
Output for 7.0.3
11:03:27 17-03-2016
Output for 7.0.2
10:03:25 21-03-2016
Output for 7.0.1
10:03:42 23-03-2016
Output for 7.0.0
01:03:52 26-03-2016
Output for 5.6.21
08:05:25 01-05-2016
Output for 5.6.20
09:04:40 09-04-2016
Output for 5.6.19
08:03:37 06-03-2016
Output for 5.6.18
09:03:25 14-03-2016
Output for 5.6.17
04:03:42 19-03-2016
Output for 5.6.16
02:03:21 27-03-2016
Output for 5.6.15
03:03:21 28-03-2016
Output for 5.6.14
06:04:20 01-04-2016
Output for 5.6.13
10:04:45 14-04-2016
Output for 5.6.12
11:04:21 19-04-2016
Output for 5.6.11
06:04:00 22-04-2016
Output for 5.6.10
08:04:51 24-04-2016
Output for 5.6.9
01:04:04 27-04-2016
Output for 5.6.8
09:04:16 29-04-2016
Output for 5.6.7
07:05:09 24-05-2016
Output for 5.5.35
11:05:21 21-05-2016
Output for 5.5.34
03:04:25 10-04-2016
Output for 5.5.33
10:03:05 08-03-2016
Output for 5.5.32
07:03:49 15-03-2016
Output for 5.5.31
07:03:47 20-03-2016
Output for 5.5.30
05:03:10 31-03-2016
Output for 5.5.29
12:04:13 16-04-2016
Output for 5.5.28
02:04:45 20-04-2016
Output for 5.5.27
05:04:08 21-04-2016
Output for 5.5.26
10:04:35 25-04-2016
Output for 5.5.25
04:04:30 28-04-2016
Output for 5.5.24
12:04:26 30-04-2016
Output for 5.4.45
11:02:49 19-02-2016
Output for 5.4.44
11:02:50 19-02-2016
Output for 5.4.42 - 5.4.43
11:02:51 19-02-2016
Output for 5.4.40 - 5.4.41
11:02:52 19-02-2016
Output for 5.4.38 - 5.4.39
11:02:53 19-02-2016
Output for 5.4.35 - 5.4.37
11:02:54 19-02-2016
Output for 5.4.34
11:02:55 19-02-2016
Output for 5.3.29, 5.4.31 - 5.4.32
11:02:56 19-02-2016
Output for 5.4.26 - 5.4.30
11:02:57 19-02-2016
Output for 5.4.23 - 5.4.25
11:02:58 19-02-2016
Output for 5.3.28, 5.4.20 - 5.4.22
11:02:59 19-02-2016
Output for 5.3.27, 5.4.17 - 5.4.19
11:02:00 19-02-2016
Output for 5.3.24 - 5.3.26, 5.4.13 - 5.4.16
11:02:01 19-02-2016
Output for 5.3.19 - 5.3.23, 5.4.9 - 5.4.12
11:02:02 19-02-2016
Output for 5.3.14 - 5.3.18, 5.4.4 - 5.4.8
11:02:03 19-02-2016
Output for 5.3.9 - 5.3.13, 5.4.0 - 5.4.3
11:02:04 19-02-2016
Output for 5.2.15 - 5.2.17, 5.3.3 - 5.3.8
11:02:05 19-02-2016
Output for 5.2.8 - 5.2.14, 5.3.0 - 5.3.2
11:02:06 19-02-2016
Output for 5.2.2 - 5.2.7
11:02:07 19-02-2016
Output for 5.2.0 - 5.2.1
11:02:08 19-02-2016
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/3H89p 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/3H89p 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/3H89p on line 2