3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump((new \DateTime())->format("Y-m-d H:i:s"));
based on LmNob
Output for 5.6.28, 7.0.20 - 7.2.0
string(19) "2016-01-03 19:30:17"
Output for 7.0.6
string(19) "2016-05-21 13:16:42"
Output for 7.0.5
string(19) "2016-04-03 09:19:25"
Output for 7.0.4
string(19) "2016-03-10 21:25:45"
Output for 7.0.3
string(19) "2016-03-18 22:48:57"
Output for 7.0.2
string(19) "2016-03-23 05:02:01"
Output for 7.0.1
string(19) "2016-03-24 08:10:04"
Output for 7.0.0
string(19) "2016-03-27 10:03:26"
Output for 5.6.21
string(19) "2016-05-02 16:12:10"
Output for 5.6.20
string(19) "2016-04-10 08:21:12"
Output for 5.6.19
string(19) "2016-03-08 05:33:41"
Output for 5.6.18
string(19) "2016-03-15 14:30:31"
Output for 5.6.17
string(19) "2016-03-20 02:02:21"
Output for 5.6.16
string(19) "2016-03-28 10:52:42"
Output for 5.6.15
string(19) "2016-03-29 11:41:52"
Output for 5.6.14
string(19) "2016-04-14 17:24:23"
Output for 5.6.13
string(19) "2016-04-15 18:03:19"
Output for 5.6.12
string(19) "2016-04-20 08:32:24"
Output for 5.6.11
string(19) "2016-04-24 14:58:12"
Output for 5.6.10
string(19) "2016-04-25 17:04:12"
Output for 5.6.9
string(19) "2016-04-27 22:30:07"
Output for 5.6.8
string(19) "2016-04-30 07:00:33"
Output for 5.5.35
string(19) "2016-05-23 01:56:26"
Output for 5.5.34
string(19) "2016-04-11 10:35:01"
Output for 5.5.33
string(19) "2016-03-09 08:32:33"
Output for 5.5.32
string(19) "2016-03-17 18:26:31"
Output for 5.5.31
string(19) "2016-03-21 05:11:11"
Output for 5.5.30
string(19) "2016-04-01 13:34:04"
Output for 5.5.29
string(19) "2016-04-17 08:21:03"
Output for 5.5.28
string(19) "2016-04-21 11:50:50"
Output for 5.5.27
string(19) "2016-04-22 13:29:49"
Output for 5.5.26
string(19) "2016-04-26 19:44:33"
Output for 5.5.25
string(19) "2016-04-29 03:09:42"
Output for 5.5.24
string(19) "2016-05-24 09:33:27"
Output for 5.4.45
string(19) "2016-01-03 19:30:20"
Output for 5.4.44
string(19) "2016-01-03 19:30:21"
Output for 5.4.43
string(19) "2016-01-03 19:30:22"
Output for 5.4.41 - 5.4.42
string(19) "2016-01-03 19:30:23"
Output for 5.4.40
string(19) "2016-01-03 19:30:24"
Output for 5.4.38 - 5.4.39
string(19) "2016-01-03 19:30:25"
Output for 5.4.36 - 5.4.37
string(19) "2016-01-03 19:30:26"
Output for 5.4.34 - 5.4.35
string(19) "2016-01-03 19:30:27"
Output for 5.4.30 - 5.4.32
string(19) "2016-01-03 19:30:28"
Output for 5.4.26 - 5.4.29
string(19) "2016-01-03 19:30:29"
Output for 5.4.23 - 5.4.25
string(19) "2016-01-03 19:30:30"
Output for 5.4.20 - 5.4.22
string(19) "2016-01-03 19:30:31"
Output for 5.4.17 - 5.4.19
string(19) "2016-01-03 19:30:32"
Output for 5.4.14 - 5.4.16
string(19) "2016-01-03 19:30:33"
Output for 5.4.11 - 5.4.13
string(19) "2016-01-03 19:30:34"
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/Ach3J on line 2
Process exited with code 255.