3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new \DateTime())->format('-m-d H:i:s');
based on EABlV
Output for 5.6.28, 7.0.20 - 7.2.0
-12-09 17:27:55
Output for 7.0.6
-05-03 20:15:25
Output for 7.0.5
-04-03 08:33:44
Output for 7.0.4
-03-10 20:31:22
Output for 7.0.3
-03-18 21:54:08
Output for 7.0.2
-03-23 04:08:34
Output for 7.0.1
-03-24 07:21:56
Output for 7.0.0
-03-27 09:16:02
Output for 5.6.21
-05-02 15:24:08
Output for 5.6.20
-04-10 07:35:10
Output for 5.6.19
-03-08 04:43:48
Output for 5.6.18
-03-15 13:35:22
Output for 5.6.17
-03-20 01:09:53
Output for 5.6.16
-03-28 10:04:58
Output for 5.6.15
-03-29 10:54:11
Output for 5.6.14
-04-14 16:35:19
Output for 5.6.13
-04-15 17:15:53
Output for 5.6.12
-04-20 07:43:07
Output for 5.6.11
-04-24 14:08:26
Output for 5.6.10
-04-25 16:12:57
Output for 5.6.9
-04-27 21:21:02
Output for 5.6.8
-04-30 06:10:57
Output for 5.5.35
-05-23 00:30:41
Output for 5.5.34
-04-11 09:46:58
Output for 5.5.33
-03-09 07:38:51
Output for 5.5.32
-03-17 17:30:04
Output for 5.5.31
-03-21 04:16:19
Output for 5.5.30
-04-01 12:46:26
Output for 5.5.29
-04-17 07:33:27
Output for 5.5.28
-04-21 11:00:15
Output for 5.5.27
-04-22 12:41:32
Output for 5.5.26
-04-26 18:52:32
Output for 5.5.25
-04-29 02:17:39
Output for 5.5.24
-05-24 16:45:06
Output for 5.4.45
-12-09 17:27:57
Output for 5.4.44
-12-09 17:27:58
Output for 5.4.42 - 5.4.43
-12-09 17:27:59
Output for 5.4.40 - 5.4.41
-12-09 17:28:00
Output for 5.4.39
-12-09 17:28:01
Output for 5.4.36 - 5.4.38
-12-09 17:28:02
Output for 5.4.34 - 5.4.35
-12-09 17:28:03
Output for 5.4.30 - 5.4.32
-12-09 17:28:04
Output for 5.4.25 - 5.4.29
-12-09 17:28:05
Output for 5.4.23 - 5.4.24
-12-09 17:28:06
Output for 5.4.19 - 5.4.22
-12-09 17:28:07
Output for 5.4.16 - 5.4.18
-12-09 17:28:08
Output for 5.4.12 - 5.4.15
-12-09 17:28:09
Output for 5.4.10 - 5.4.11
-12-09 17:28:10
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/1VWpn on line 2
Process exited with code 255.