3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new \DateTime())->format('Ymd H:i:s');
based on nAYNn
Output for 5.6.28, 7.0.20 - 7.2.0
20151220 17:07:39
Output for 7.0.6
20160521 12:49:20
Output for 7.0.5
20160403 08:55:57
Output for 7.0.4
20160310 21:00:43
Output for 7.0.3
20160318 22:20:45
Output for 7.0.2
20160323 04:34:38
Output for 7.0.1
20160324 07:45:16
Output for 7.0.0
20160327 09:38:52
Output for 5.6.21
20160502 15:47:48
Output for 5.6.20
20160410 07:57:21
Output for 5.6.19
20160308 05:07:53
Output for 5.6.18
20160315 14:01:22
Output for 5.6.17
20160320 01:35:09
Output for 5.6.16
20160328 10:28:15
Output for 5.6.15
20160329 11:17:21
Output for 5.6.14
20160414 16:58:51
Output for 5.6.13
20160415 17:38:40
Output for 5.6.12
20160420 08:07:20
Output for 5.6.11
20160424 14:32:42
Output for 5.6.10
20160425 16:37:43
Output for 5.6.9
20160427 21:45:56
Output for 5.6.8
20160430 06:34:40
Output for 5.5.35
20160523 01:16:26
Output for 5.5.34
20160411 10:10:59
Output for 5.5.33
20160309 08:06:24
Output for 5.5.32
20160317 17:57:05
Output for 5.5.31
20160321 04:42:53
Output for 5.5.30
20160401 13:10:17
Output for 5.5.29
20160417 07:56:30
Output for 5.5.28
20160421 11:25:11
Output for 5.5.27
20160422 13:05:11
Output for 5.5.26
20160426 19:16:56
Output for 5.5.25
20160429 02:42:28
Output for 5.5.24
20160524 09:08:30
Output for 5.4.44 - 5.4.45
20151220 17:07:42
Output for 5.4.43
20151220 17:07:43
Output for 5.4.41 - 5.4.42
20151220 17:07:44
Output for 5.4.38 - 5.4.40
20151220 17:07:45
Output for 5.4.35 - 5.4.37
20151220 17:07:46
Output for 5.4.31 - 5.4.34
20151220 17:07:47
Output for 5.4.27 - 5.4.30
20151220 17:07:48
Output for 5.4.23 - 5.4.26
20151220 17:07:49
Output for 5.4.19 - 5.4.22
20151220 17:07:50
Output for 5.4.14 - 5.4.18
20151220 17:07:51
Output for 5.4.11 - 5.4.13
20151220 17:07:52
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/d85iD on line 2
Process exited with code 255.