3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime(); echo $date->format('d-m-Y H:i')."\n"; $date->modify('-30 minutes'); echo $date->format('d-m-Y H:i')."\n";
Output for 5.4.42 - 5.4.45, 5.6.28, 7.0.20 - 7.2.0
08-01-2016 10:57 08-01-2016 10:27
Output for 7.0.6
21-05-2016 13:31 21-05-2016 13:01
Output for 7.0.5
03-04-2016 09:31 03-04-2016 09:01
Output for 7.0.4
10-03-2016 21:38 10-03-2016 21:08
Output for 7.0.3
18-03-2016 23:03 18-03-2016 22:33
Output for 7.0.2
23-03-2016 05:16 23-03-2016 04:46
Output for 7.0.1
24-03-2016 08:22 24-03-2016 07:52
Output for 7.0.0
27-03-2016 10:16 27-03-2016 09:46
Output for 5.6.21
02-05-2016 16:24 02-05-2016 15:54
Output for 5.6.20
10-04-2016 08:33 10-04-2016 08:03
Output for 5.6.19
08-03-2016 05:46 08-03-2016 05:16
Output for 5.6.18
15-03-2016 14:44 15-03-2016 14:14
Output for 5.6.17
20-03-2016 02:16 20-03-2016 01:46
Output for 5.6.16
28-03-2016 11:05 28-03-2016 10:35
Output for 5.6.15
29-03-2016 11:54 29-03-2016 11:24
Output for 5.6.14
14-04-2016 17:37 14-04-2016 17:07
Output for 5.6.13
15-04-2016 18:16 15-04-2016 17:46
Output for 5.6.12
20-04-2016 08:45 20-04-2016 08:15
Output for 5.6.11
24-04-2016 15:11 24-04-2016 14:41
Output for 5.6.10
25-04-2016 17:17 25-04-2016 16:47
Output for 5.6.9
27-04-2016 22:43 27-04-2016 22:13
Output for 5.6.8
30-04-2016 07:13 30-04-2016 06:43
Output for 5.5.35
23-05-2016 02:25 23-05-2016 01:55
Output for 5.5.34
11-04-2016 10:47 11-04-2016 10:17
Output for 5.5.33
09-03-2016 08:45 09-03-2016 08:15
Output for 5.5.32
17-03-2016 18:41 17-03-2016 18:11
Output for 5.5.31
21-03-2016 05:26 21-03-2016 04:56
Output for 5.5.30
01-04-2016 13:46 01-04-2016 13:16
Output for 5.5.29
17-04-2016 08:34 17-04-2016 08:04
Output for 5.5.28
21-04-2016 12:04 21-04-2016 11:34
Output for 5.5.27
22-04-2016 13:42 22-04-2016 13:12
Output for 5.5.26
26-04-2016 19:58 26-04-2016 19:28
Output for 5.5.25
29-04-2016 03:24 29-04-2016 02:54
Output for 5.5.24
24-05-2016 09:47 24-05-2016 09:17
Output for 5.3.21 - 5.4.41
08-01-2016 10:58 08-01-2016 10:28