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.5.0 - 5.5.2, 5.5.4 - 5.6.4, 5.6.6 - 5.6.38, hhvm-3.10.1 - 3.11.1, hhvm-3.13.2 - 3.18.4, hhvm-3.19.2, hhvm-3.21.0 - 3.22.0, 7.0.0 - 7.3.1
20190110 16:43:33
Output for 5.5.3, 5.6.5, hhvm-3.12.14, hhvm-3.18.5, hhvm-3.20.2
20190110 16:43:34
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.