3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dt = new \DateTime(); echo $dt->format('Y-m-dTH:i:s');
based on HSROl
Output for 5.6.28, 7.0.14 - 7.1.0
2014-11-03CET17:35:57
Output for 7.0.6
2016-05-03CEST05:44:49
Output for 7.0.5
2016-04-02CEST18:49:55
Output for 7.0.4
2016-03-10CET04:46:18
Output for 7.0.3
2016-03-18CET05:08:04
Output for 7.0.2
2016-03-21CET15:35:30
Output for 7.0.1
2016-03-23CET16:11:23
Output for 7.0.0
2016-03-26CET17:57:58
Output for hhvm-3.12.0
2016-03-31CEST09:48:13
Output for hhvm-3.10.0
2016-03-30CEST02:19:36
Output for 5.6.21
2016-05-02CEST00:48:25
Output for 5.6.20
2016-04-09CEST14:06:19
Output for 5.6.19
2016-03-07CET04:51:02
Output for 5.6.18
2016-03-14CET17:48:22
Output for 5.6.17
2016-03-19CET09:31:34
Output for 5.6.16
2016-03-27CEST19:44:11
Output for 5.6.15
2016-03-28CEST20:36:57
Output for 5.6.14
2016-04-01CEST23:08:03
Output for 5.6.13
2016-04-15CEST03:09:24
Output for 5.6.12
2016-04-19CEST16:37:56
Output for 5.6.11
2016-04-22CEST23:33:28
Output for 5.6.10
2016-04-25CEST01:26:04
Output for 5.6.9
2016-04-27CEST06:26:44
Output for 5.6.8
2016-04-29CEST14:17:48
Output for 5.6.7
2016-05-25CEST04:07:30
Output for 5.5.35
2016-05-22CEST04:36:24
Output for 5.5.34
2016-04-10CEST20:03:19
Output for 5.5.33
2016-03-08CET15:42:05
Output for 5.5.32
2016-03-16CET21:34:38
Output for 5.5.31
2016-03-20CET12:22:18
Output for 5.5.30
2016-03-31CEST22:38:27
Output for 5.5.29
2016-04-16CEST17:14:53
Output for 5.5.28
2016-04-20CEST19:40:33
Output for 5.5.27
2016-04-21CEST21:59:05
Output for 5.5.26
2016-04-26CEST03:49:58
Output for 5.5.25
2016-04-28CEST09:47:40
Output for 5.5.24
2016-05-23CEST16:39:30
Output for 5.4.45
2015-09-07CEST06:31:21
Output for 5.4.44
2015-09-07CEST06:31:18
Output for 5.4.43
2015-09-07CEST06:31:13
Output for 5.4.42
2015-09-07CEST06:31:12
Output for 5.4.41
2015-09-07CEST06:31:10
Output for 5.4.40
2015-09-07CEST06:31:08
Output for 5.4.39
2015-09-07CEST06:31:07
Output for 5.4.38
2015-09-07CEST06:31:05
Output for 5.4.37
2015-09-07CEST06:31:03
Output for 5.4.36
2015-09-07CEST06:31:02
Output for 5.4.35
2015-09-07CEST06:31:01
Output for 5.4.18 - 5.4.34
2014-11-03CET17:36:02
Output for 5.3.26 - 5.4.17
2014-11-03CET17:36:03
Output for 5.3.4 - 5.3.25
2014-11-03CET17:36:04
Output for 5.3.0 - 5.3.3
2014-11-03CET17:36:05
Output for 5.2.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/vGg0L on line 2 2014-11-03CET17:36:05
Output for 5.0.0 - 5.1.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/vGg0L on line 2 Fatal error: Class 'DateTime' not found in /in/vGg0L on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/vGg0L on line 2 Fatal error: Cannot instantiate non-existent class: datetime in /in/vGg0L on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/vGg0L on line 2 Fatal error: Cannot instantiate non-existent class: datetime in /in/vGg0L on line 2