3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime(); echo $date->format("H:i:s\n"); $date = new DateTime("+5 minutes"); echo $date->format("H:i:s\n");
Output for 7.0.20 - 7.2.0
20:39:58 20:44:58
Output for 7.0.6
18:20:00 18:25:00
Output for 7.0.5
06:45:40 06:50:40
Output for 7.0.4
18:31:59 18:36:59
Output for 7.0.3
19:39:26 19:44:26
Output for 7.0.2
01:46:58 01:51:58
Output for 7.0.1
05:27:33 05:32:33
Output for 7.0.0
07:23:54 07:28:54
Output for 5.6.21
13:29:24 13:34:24
Output for 5.6.20
05:45:03 05:50:03
Output for 5.6.19
02:42:58 02:47:58
Output for 5.6.18
11:26:04 11:31:04
Output for 5.6.17
23:05:43 23:10:43
Output for 5.6.16
08:11:13 08:16:13
Output for 5.6.15
09:01:48 09:06:48
Output for 5.6.14
10:53:27 10:58:27
Output for 5.6.13
15:16:46 15:21:46
Output for 5.6.12
05:45:49 05:50:49
Output for 5.6.11
12:07:48 12:12:48
Output for 5.6.10
14:11:17 14:16:17
Output for 5.6.9
19:21:15 19:26:15
Output for 5.6.8
04:13:54 04:18:54
Output for 5.5.35
20:19:51 20:24:51
Output for 5.5.34
07:56:46 08:01:46
Output for 5.5.33
05:24:37 05:29:37
Output for 5.5.32
15:20:28 15:25:28
Output for 5.5.31
02:06:52 02:11:52
Output for 5.5.30
10:55:24 11:00:24
Output for 5.5.29
05:40:33 05:45:33
Output for 5.5.28
08:59:10 09:04:10
Output for 5.5.27
10:46:33 10:51:33
Output for 5.5.26
16:53:55 16:58:55
Output for 5.5.25
23:46:12 23:51:12
Output for 5.5.24
06:19:34 06:24:34
Output for 5.4.41 - 5.4.45
20:40:06 20:45:06
Output for 5.4.34 - 5.4.40
20:40:07 20:45:07
Output for 5.4.27 - 5.4.32
20:40:08 20:45:08
Output for 5.4.19 - 5.4.26
20:40:09 20:45:09
Output for 5.4.12 - 5.4.18
20:40:10 20:45:10
Output for 5.4.4 - 5.4.11
20:40:11 20:45:11
Output for 5.3.26 - 5.4.3
20:40:12 20:45:12
Output for 5.3.19 - 5.3.25
20:40:13 20:45:13