3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime('now'); $date->modify('+1 hour +10 minutes'); echo $date->format('h:m:s d-m-Y');
Output for 5.6.28, 7.0.12 - 7.1.0
10:05:27 08-05-2013
Output for 7.0.6
01:05:58 03-05-2016
Output for 7.0.5
02:04:21 02-04-2016
Output for 7.0.4
11:03:28 09-03-2016
Output for 7.0.3
12:03:23 18-03-2016
Output for 7.0.2
10:03:51 21-03-2016
Output for 7.0.1
10:03:40 23-03-2016
Output for 7.0.0
01:03:21 26-03-2016
Output for 5.6.21
08:05:52 01-05-2016
Output for 5.6.20
10:04:34 09-04-2016
Output for 5.6.19
09:03:35 06-03-2016
Output for 5.6.18
09:03:03 14-03-2016
Output for 5.6.17
04:03:35 19-03-2016
Output for 5.6.16
03:03:33 27-03-2016
Output for 5.6.15
04:03:28 28-03-2016
Output for 5.6.14
07:04:25 01-04-2016
Output for 5.6.13
11:04:17 14-04-2016
Output for 5.6.12
12:04:58 19-04-2016
Output for 5.6.11
07:04:17 22-04-2016
Output for 5.6.10
09:04:03 24-04-2016
Output for 5.6.9
02:04:11 27-04-2016
Output for 5.6.8
09:04:40 29-04-2016
Output for 5.6.7
07:05:33 24-05-2016
Output for 5.5.35
11:05:05 21-05-2016
Output for 5.5.34
03:04:23 10-04-2016
Output for 5.5.33
10:03:15 08-03-2016
Output for 5.5.32
08:03:47 15-03-2016
Output for 5.5.31
07:03:02 20-03-2016
Output for 5.5.30
06:03:02 31-03-2016
Output for 5.5.29
01:04:51 16-04-2016
Output for 5.5.28
03:04:10 20-04-2016
Output for 5.5.27
05:04:56 21-04-2016
Output for 5.5.26
11:04:12 25-04-2016
Output for 5.5.25
05:04:47 28-04-2016
Output for 5.5.24
01:04:31 30-04-2016
Output for 5.4.45
09:02:55 20-02-2016
Output for 5.4.44
09:02:56 20-02-2016
Output for 5.4.41 - 5.4.43
09:02:57 20-02-2016
Output for 5.4.40
09:02:58 20-02-2016
Output for 5.4.37 - 5.4.39
09:02:59 20-02-2016
Output for 5.4.35 - 5.4.36
09:02:00 20-02-2016
Output for 5.3.29, 5.4.32 - 5.4.34
09:02:01 20-02-2016
Output for 5.4.28 - 5.4.31
09:02:02 20-02-2016
Output for 5.4.23 - 5.4.27
09:02:03 20-02-2016
Output for 5.3.28, 5.4.20 - 5.4.22
09:02:04 20-02-2016
Output for 5.3.26 - 5.3.27, 5.4.16 - 5.4.19
09:02:05 20-02-2016
Output for 5.3.21 - 5.3.25, 5.4.12 - 5.4.15
09:02:06 20-02-2016
Output for 5.3.17 - 5.3.20, 5.4.7 - 5.4.11
09:02:07 20-02-2016
Output for 5.3.13 - 5.3.16, 5.4.3 - 5.4.6
09:02:08 20-02-2016
Output for 5.3.7 - 5.3.12, 5.4.0 - 5.4.2
09:02:09 20-02-2016
Output for 5.2.15 - 5.2.17, 5.3.3 - 5.3.6
09:02:10 20-02-2016
Output for 5.2.11 - 5.2.14, 5.3.0 - 5.3.2
09:02:11 20-02-2016
Output for 5.2.3 - 5.2.10
09:02:12 20-02-2016
Output for 5.2.0 - 5.2.2
09:02:13 20-02-2016
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/IA4KM 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/IA4KM 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/IA4KM on line 2