3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dt = new DateTime(); $dstr = $dt->format('Y-m-d H:i:s.u'); echo $dstr . "\n"; $dn = DateTime::createFromFormat('Y-m-d H:i:s.u', $dstr); echo $dn . "\n";
Output for 7.3.0rc4
2013-10-08 12:18:16.006308 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 7.3.0rc3
2013-10-08 12:18:16.002252 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 7.3.0beta1
2013-10-08 12:18:16.001628 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 7.3.0alpha1
2013-10-08 12:18:16.002353 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 7.2.6
2013-10-08 12:18:16.005068 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 7.2.0
2013-10-08 12:18:16.003167 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 7.1.20
2013-10-08 12:18:16.002623 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 7.1.10
2013-10-08 12:18:16.002693 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 7.1.7
2013-10-08 12:18:16.002439 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 7.1.6
2013-10-08 12:18:16.012401 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 7.1.5
2013-10-08 12:18:16.008718 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 7.1.0
2013-10-08 12:18:16.006679 Recoverable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 7.0.12 - 7.0.20
2013-10-08 12:18:16.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 7.0.6
2016-05-03 15:08:47.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 7.0.5
2016-04-03 03:45:43.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 7.0.4
2016-03-10 15:07:21.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 7.0.3
2016-03-18 15:45:35.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 7.0.2
2016-03-22 21:51:52.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 7.0.1
2016-03-24 02:16:20.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 7.0.0
2016-03-27 04:15:46.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.6.21
2016-05-02 10:20:31.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.6.20
2016-04-10 02:41:39.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.6.19
2016-03-07 22:50:36.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.6.18
2016-03-15 07:42:43.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.6.17
2016-03-19 19:40:54.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.6.16
2016-03-28 05:05:05.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.6.15
2016-03-29 05:57:34.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.6.14
2016-04-02 07:59:45.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.6.13
2016-04-15 12:10:52.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.6.12
2016-04-20 02:30:43.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.6.11
2016-04-23 09:06:16.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.6.10
2016-04-25 10:57:35.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.6.9
2016-04-27 16:04:25.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.6.8
2016-04-30 00:38:47.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.5.35
2016-05-22 14:46:16.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.5.34
2016-04-11 04:57:04.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.5.33
2016-03-09 01:55:45.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.5.32
2016-03-17 11:11:45.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.5.31
2016-03-20 22:25:54.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.5.30
2016-04-01 07:50:53.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.5.29
2016-04-17 02:30:15.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.5.28
2016-04-21 05:41:55.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.5.27
2016-04-22 07:43:49.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.5.26
2016-04-26 13:36:38.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.5.25
2016-04-28 20:11:18.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.5.24
2016-05-24 03:12:21.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.4.45
2016-02-20 10:59:37.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.4.44
2016-02-20 10:59:38.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.4.42 - 5.4.43
2016-02-20 10:59:39.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.4.40 - 5.4.41
2016-02-20 10:59:40.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.4.37 - 5.4.39
2016-02-20 10:59:41.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.4.35 - 5.4.36
2016-02-20 10:59:42.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.3.29, 5.4.31 - 5.4.34
2016-02-20 10:59:43.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.4.27 - 5.4.30
2016-02-20 10:59:44.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.4.24 - 5.4.26
2016-02-20 10:59:45.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.3.28, 5.4.20 - 5.4.23
2016-02-20 10:59:46.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.4.18 - 5.4.19
2016-02-20 10:59:47.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.3.25 - 5.3.27, 5.4.15 - 5.4.17
2016-02-20 10:59:48.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.3.20 - 5.3.24, 5.4.11 - 5.4.14
2016-02-20 10:59:49.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.3.17 - 5.3.19, 5.4.7 - 5.4.10
2016-02-20 10:59:50.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.3.12 - 5.3.16, 5.4.3 - 5.4.6
2016-02-20 10:59:51.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.3.8 - 5.3.11, 5.4.0 - 5.4.2
2016-02-20 10:59:52.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.3.3 - 5.3.7
2016-02-20 10:59:53.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.3.1 - 5.3.2
2016-02-20 10:59:54.000000 Catchable fatal error: Object of class DateTime could not be converted to string in /in/OYYfd on line 6
Process exited with code 255.
Output for 5.3.0
2016-02-20 10:59:54.000000
Output for 5.2.15 - 5.2.17
2016-02-20 10:59:53.000000 Fatal error: Call to undefined method DateTime::createFromFormat() in /in/OYYfd on line 5
Process exited with code 255.
Output for 5.2.11 - 5.2.14
2016-02-20 10:59:54.000000 Fatal error: Call to undefined method DateTime::createFromFormat() in /in/OYYfd on line 5
Process exited with code 255.
Output for 5.2.10
2016-02-20 10:59:55.000000 Fatal error: Call to undefined method DateTime::createFromFormat() in /in/OYYfd on line 5
Process exited with code 255.
Output for 5.2.5 - 5.2.9
2016-02-20 10:59:55.000000 Fatal error: Call to undefined method DateTime::createfromformat() in /in/OYYfd on line 5
Process exited with code 255.
Output for 5.2.2 - 5.2.4
2016-02-20 10:59:56.000000 Fatal error: Call to undefined method DateTime::createfromformat() in /in/OYYfd on line 5
Process exited with code 255.
Output for 5.2.0 - 5.2.1
2016-02-20 10:59:56.u Fatal error: Call to undefined method DateTime::createfromformat() in /in/OYYfd on line 5
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/OYYfd 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/OYYfd 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/OYYfd on line 2