3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new DateTime('-30 minutes', new DateTimeZone('America/Sao_Paulo')))->format('Ymd H:i:s');
based on iPVNj
Output for 5.6.28, 7.0.20 - 7.2.0
20150929 13:16:44
Output for 7.0.6
20160502 23:29:47
Output for 7.0.5
20160402 12:38:30
Output for 7.0.4
20160309 23:28:01
Output for 7.0.3
20160317 23:47:13
Output for 7.0.2
20160321 10:15:19
Output for 7.0.1
20160323 10:53:29
Output for 7.0.0
20160326 12:44:29
Output for 5.6.21
20160501 18:33:40
Output for 5.6.20
20160409 07:53:12
Output for 5.6.19
20160306 22:52:35
Output for 5.6.18
20160314 12:24:59
Output for 5.6.17
20160319 04:12:16
Output for 5.6.16
20160327 13:30:12
Output for 5.6.15
20160328 14:22:28
Output for 5.6.14
20160401 16:55:54
Output for 5.6.13
20160414 20:55:44
Output for 5.6.12
20160419 10:12:24
Output for 5.6.11
20160422 17:20:03
Output for 5.6.10
20160424 18:58:33
Output for 5.6.9
20160427 00:10:47
Output for 5.6.8
20160429 07:58:46
Output for 5.6.7
20160524 20:31:46
Output for 5.5.35
20160521 22:17:49
Output for 5.5.34
20160410 13:50:45
Output for 5.5.33
20160308 10:22:22
Output for 5.5.32
20160316 16:12:33
Output for 5.5.31
20160320 07:03:59
Output for 5.5.30
20160331 16:23:30
Output for 5.5.29
20160416 11:00:12
Output for 5.5.28
20160420 13:23:05
Output for 5.5.27
20160421 15:46:10
Output for 5.5.26
20160425 21:32:45
Output for 5.5.25
20160428 03:30:04
Output for 5.5.24
20160523 10:22:36
Output for 5.4.44 - 5.4.45
20150929 13:16:52
Output for 5.4.35 - 5.4.43
20150929 13:16:53
Output for 5.4.27 - 5.4.34
20150929 13:16:54
Output for 5.4.20 - 5.4.26
20150929 13:16:55
Output for 5.4.13 - 5.4.19
20150929 13:16:56
Output for 5.4.8 - 5.4.12
20150929 13:16:57
Output for 5.4.7
20151026 22:00:03
Output for 5.4.6
20151026 23:17:22
Output for 5.4.5
20151027 00:52:20
Output for 5.4.4
20151027 02:25:26
Output for 5.4.3
20151027 04:07:05
Output for 5.4.2
20151027 05:50:26
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/SIGnQ on line 3
Process exited with code 255.