3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d = new DateTime('WAT'); echo $d->format('Y-m-d H:i:s') . "\n";
Output for 5.6.28, 7.0.14 - 7.1.0
2014-01-28 13:30:11
Output for 7.0.6
2016-05-03 18:59:21
Output for 7.0.5
2016-04-03 07:23:13
Output for 7.0.4
2016-03-10 19:12:52
Output for 7.0.3
2016-03-18 20:26:11
Output for 7.0.2
2016-03-23 02:33:50
Output for 7.0.1
2016-03-24 06:06:39
Output for 7.0.0
2016-03-27 08:02:10
Output for hhvm-3.12.0
2016-03-13 11:05:54
Output for hhvm-3.10.0
2016-03-31 03:05:10
Output for 5.6.21
2016-05-02 14:08:18
Output for 5.6.20
2016-04-10 06:22:44
Output for 5.6.19
2016-03-08 03:24:15
Output for 5.6.18
2016-03-15 12:11:04
Output for 5.6.17
2016-03-19 23:47:17
Output for 5.6.16
2016-03-28 08:49:26
Output for 5.6.15
2016-03-29 09:40:01
Output for 5.6.14
2016-04-02 11:29:31
Output for 5.6.13
2016-04-15 15:58:02
Output for 5.6.12
2016-04-20 06:26:36
Output for 5.6.11
2016-04-24 12:49:55
Output for 5.6.10
2016-04-25 14:51:40
Output for 5.6.9
2016-04-27 20:01:58
Output for 5.6.8
2016-04-30 04:54:30
Output for 5.5.35
2016-05-22 22:13:12
Output for 5.5.34
2016-04-11 08:34:16
Output for 5.5.33
2016-03-09 06:11:22
Output for 5.5.32
2016-03-17 16:04:04
Output for 5.5.31
2016-03-21 02:50:55
Output for 5.5.30
2016-04-01 11:33:40
Output for 5.5.29
2016-04-17 06:19:25
Output for 5.5.28
2016-04-21 09:40:57
Output for 5.5.27
2016-04-22 11:26:05
Output for 5.5.26
2016-04-26 17:34:49
Output for 5.5.25
2016-04-29 00:33:10
Output for 5.5.24
2016-05-24 06:59:43
Output for 5.4.44 - 5.4.45
2015-11-18 11:18:07
Output for 5.4.43
2015-11-18 11:18:08
Output for 5.4.41 - 5.4.42
2015-11-18 11:18:09
Output for 5.4.39 - 5.4.40
2015-11-18 11:18:10
Output for 5.4.36 - 5.4.38
2015-11-18 11:18:11
Output for 5.4.34 - 5.4.35
2015-11-18 11:18:12
Output for 5.3.29, 5.4.31 - 5.4.32
2015-11-18 11:18:13
Output for 5.4.27 - 5.4.30
2015-11-18 11:18:14
Output for 5.4.23 - 5.4.26
2015-11-18 11:18:15
Output for 5.3.28, 5.4.20 - 5.4.22
2015-11-18 11:18:16
Output for 5.3.27, 5.4.17 - 5.4.19
2015-11-18 11:18:17
Output for 5.3.24 - 5.3.26, 5.4.13 - 5.4.16
2015-11-18 11:18:18
Output for 5.3.20 - 5.3.23, 5.4.10 - 5.4.12
2015-11-18 11:18:19
Output for 5.3.17 - 5.3.19, 5.4.6 - 5.4.9
2015-11-18 11:18:20
Output for 5.3.12 - 5.3.16, 5.4.3 - 5.4.5
2015-11-18 11:18:21
Output for 5.3.7 - 5.3.11, 5.4.0 - 5.4.2
2015-11-18 11:18:22
Output for 5.2.14 - 5.2.17, 5.3.3 - 5.3.6
2015-11-18 11:18:23
Output for 5.2.8 - 5.2.13, 5.3.0 - 5.3.2
2015-11-18 11:18:24
Output for 5.2.2 - 5.2.7
2015-11-18 11:18:25
Output for 5.2.0 - 5.2.1
2015-11-18 11:18:26
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/PudHq on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/PudHq on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/PudHq on line 2