3v4l.org

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