3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime('now'); $date->modify('+1 hour'); echo $date->format('h:m:s d-m-Y');
Output for 7.0.14 - 7.3.0rc4
10:05:14 08-05-2013
Output for 7.0.6
01:05:58 03-05-2016
Output for 7.0.5
03:04:37 02-04-2016
Output for 7.0.4
12:03:20 10-03-2016
Output for 7.0.3
12:03:26 18-03-2016
Output for 7.0.2
11:03:23 21-03-2016
Output for 7.0.1
11:03:40 23-03-2016
Output for 7.0.0
02:03:51 26-03-2016
Output for 5.6.21
09:05:24 01-05-2016
Output for 5.6.20
10:04:39 09-04-2016
Output for 5.6.19
09:03:35 06-03-2016
Output for 5.6.18
10:03:24 14-03-2016
Output for 5.6.17
05:03:40 19-03-2016
Output for 5.6.16
03:03:20 27-03-2016
Output for 5.6.15
04:03:20 28-03-2016
Output for 5.6.14
07:04:19 01-04-2016
Output for 5.6.13
11:04:44 14-04-2016
Output for 5.6.12
12:04:20 19-04-2016
Output for 5.6.11
07:04:59 22-04-2016
Output for 5.6.10
09:04:49 24-04-2016
Output for 5.6.9
02:04:03 27-04-2016
Output for 5.6.8
10:04:15 29-04-2016
Output for 5.6.7
08:05:08 24-05-2016
Output for 5.5.35
12:05:19 22-05-2016
Output for 5.5.34
04:04:24 10-04-2016
Output for 5.5.33
11:03:04 08-03-2016
Output for 5.5.32
08:03:47 15-03-2016
Output for 5.5.31
08:03:45 20-03-2016
Output for 5.5.30
06:03:09 31-03-2016
Output for 5.5.29
01:04:11 16-04-2016
Output for 5.5.28
03:04:44 20-04-2016
Output for 5.5.27
06:04:07 21-04-2016
Output for 5.5.26
11:04:34 25-04-2016
Output for 5.5.25
05:04:28 28-04-2016
Output for 5.5.24
01:04:25 30-04-2016
Output for 5.4.44 - 5.4.45
09:02:06 18-02-2016
Output for 5.4.42 - 5.4.43
09:02:07 18-02-2016
Output for 5.4.40 - 5.4.41
09:02:08 18-02-2016
Output for 5.4.38 - 5.4.39
09:02:09 18-02-2016
Output for 5.4.36 - 5.4.37
09:02:10 18-02-2016
Output for 5.4.34 - 5.4.35
09:02:11 18-02-2016
Output for 5.3.29, 5.4.30 - 5.4.32
09:02:12 18-02-2016
Output for 5.4.26 - 5.4.29
09:02:13 18-02-2016
Output for 5.4.23 - 5.4.25
09:02:14 18-02-2016
Output for 5.3.28, 5.4.20 - 5.4.22
09:02:15 18-02-2016
Output for 5.3.27, 5.4.17 - 5.4.19
09:02:16 18-02-2016
Output for 5.3.24 - 5.3.26, 5.4.13 - 5.4.16
09:02:17 18-02-2016
Output for 5.3.20 - 5.3.23, 5.4.10 - 5.4.12
09:02:18 18-02-2016
Output for 5.3.16 - 5.3.19, 5.4.6 - 5.4.9
09:02:19 18-02-2016
Output for 5.3.12 - 5.3.15, 5.4.3 - 5.4.5
09:02:20 18-02-2016
Output for 5.3.8 - 5.3.11, 5.4.0 - 5.4.2
09:02:21 18-02-2016
Output for 5.2.15 - 5.2.17, 5.3.4 - 5.3.7
09:02:22 18-02-2016
Output for 5.2.11 - 5.2.14, 5.3.0 - 5.3.3
09:02:23 18-02-2016
Output for 5.2.5 - 5.2.10
09:02:24 18-02-2016
Output for 5.2.0 - 5.2.4
09:02:25 18-02-2016
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/ld0BR 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/ld0BR 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/ld0BR on line 2