3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date_start = new DateTime('-1 hour', new DateTimeZone('America/Sao_Paulo')); echo $date_start->format('Y-m-d H:i:s');
based on kQftS
Output for 5.6.28, 7.0.20 - 7.2.0
2015-09-27 21:24:50
Output for 7.0.6
2016-05-21 13:58:12
Output for 7.0.5
2016-04-02 12:07:25
Output for 7.0.4
2016-03-09 22:56:44
Output for 7.0.3
2016-03-17 23:15:58
Output for 7.0.2
2016-03-21 09:44:08
Output for 7.0.1
2016-03-23 10:22:18
Output for 7.0.0
2016-03-26 12:13:22
Output for 5.6.21
2016-05-02 15:52:53
Output for 5.6.20
2016-04-09 07:22:09
Output for 5.6.19
2016-03-06 22:21:20
Output for 5.6.18
2016-03-14 11:53:47
Output for 5.6.17
2016-03-19 03:41:04
Output for 5.6.16
2016-03-27 12:59:06
Output for 5.6.15
2016-03-28 13:51:27
Output for 5.6.14
2016-04-01 16:24:51
Output for 5.6.13
2016-04-15 15:53:14
Output for 5.6.12
2016-04-20 06:56:22
Output for 5.6.11
2016-04-24 12:50:18
Output for 5.6.10
2016-04-25 14:58:34
Output for 5.6.9
2016-04-27 20:57:36
Output for 5.6.8
2016-04-30 04:43:06
Output for 5.5.35
2016-05-23 05:18:23
Output for 5.5.34
2016-04-11 09:46:46
Output for 5.5.33
2016-03-08 09:51:17
Output for 5.5.32
2016-03-16 15:41:22
Output for 5.5.31
2016-03-20 06:32:47
Output for 5.5.30
2016-03-31 15:52:24
Output for 5.5.29
2016-04-17 06:03:58
Output for 5.5.28
2016-04-21 09:45:43
Output for 5.5.27
2016-04-22 11:15:50
Output for 5.5.26
2016-04-26 17:40:17
Output for 5.5.25
2016-04-29 01:15:17
Output for 5.5.24
2016-05-24 08:22:53
Output for 5.4.43 - 5.4.45
2015-09-27 21:25:00
Output for 5.4.36 - 5.4.42
2015-09-27 21:25:01
Output for 5.4.29 - 5.4.35
2015-09-27 21:25:02
Output for 5.4.22 - 5.4.28
2015-09-27 21:25:03
Output for 5.4.15 - 5.4.21
2015-09-27 21:25:04
Output for 5.4.8 - 5.4.14
2015-09-27 21:25:05
Output for 5.4.7
2015-10-26 21:29:01
Output for 5.4.6
2015-10-26 22:46:21
Output for 5.4.5
2015-10-27 00:21:29
Output for 5.4.4
2015-10-27 01:54:35
Output for 5.4.3
2015-10-27 03:36:13
Output for 5.4.2
2015-10-27 05:19:35
Output for 5.3.28 - 5.3.29
2015-10-02 04:34:42
Output for 5.3.27
2015-10-02 04:34:41
Output for 5.3.25 - 5.3.26
2015-10-02 04:34:40
Output for 5.3.24
2015-10-02 04:34:39
Output for 5.3.22 - 5.3.23
2015-10-02 04:34:38
Output for 5.3.21
2015-10-02 04:34:37
Output for 5.3.19 - 5.3.20
2015-10-02 04:34:36
Output for 5.3.18
2015-10-02 04:34:35