3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function getDiffInHours(\DateTime $earlierDate, \DateTime $laterDate) { $utc = new \DateTimeZone('UTC'); //First convert to UTC to avoid missing hours due to DST etc $earlierDate->setTimezone($utc); $laterDate->setTimezone($utc); $diff = $earlierDate->diff($laterDate); return 24 * $diff->days + $diff->h; } $earlierTime = new \DateTime(); $laterTime = new \DateTime('+ 31 hours'); $hours = getDiffInHours($earlierTime, $laterTime); var_dump($hours, $earlierTime, $laterTime);
Output for 7.1.0
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2013-11-11 22:13:20.006425" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2013-11-13 05:13:20.006435" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.28, 7.0.14
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2013-11-11 22:13:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2013-11-13 05:13:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.0.6
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-03 05:03:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-05-04 12:03:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.0.5
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-02 18:03:28.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-04 01:03:28.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.0.4
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-10 05:12:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-11 12:12:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.0.3
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-18 05:39:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-19 12:39:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.0.2
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-22 11:12:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-23 18:12:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.0.1
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-23 16:34:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-24 23:34:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 7.0.0
int(30) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-26 18:16:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-28 00:16:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.21
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-02 00:20:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-05-03 07:20:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.20
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-09 13:54:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-10 20:54:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.19
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-07 06:43:34.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-08 13:43:34.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.18
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-14 19:20:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-16 02:20:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.17
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-19 10:00:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-20 17:00:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.16
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-27 19:01:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-29 02:01:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.15
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-28 19:53:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-30 02:53:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.14
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-01 22:22:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-03 05:22:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.13
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-15 02:26:24.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-16 09:26:24.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.12
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-19 15:58:12.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-20 22:58:12.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.11
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-22 22:56:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-24 05:56:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.10
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-25 00:47:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-26 07:47:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.9
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-27 05:46:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-28 12:46:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.8
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-29 13:40:26.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-30 20:40:26.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.6.7
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-25 05:54:22.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-05-26 12:54:22.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.35
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-22 03:58:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-05-23 10:58:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.34
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-10 19:17:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-12 02:17:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.33
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-08 16:07:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-09 23:07:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.32
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-16 22:09:17.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-18 05:09:17.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.31
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-20 12:48:43.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-21 19:48:43.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.30
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-31 21:53:18.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-02 04:53:18.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.29
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-16 16:31:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-17 23:31:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.28
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-20 19:02:39.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-22 02:02:39.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.27
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-21 21:29:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-23 04:29:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.26
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-26 03:14:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-27 10:14:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.25
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-28 09:16:43.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-29 16:16:43.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.5.24
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-23 16:11:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-05-24 23:11:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.45
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-20 21:36:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-22 04:36:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.44
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-04 07:36:24.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-05 14:36:24.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.43
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-04 07:36:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-05 14:36:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.42
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-04 07:36:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-05 14:36:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.41
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-04 07:36:17.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-05 14:36:17.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.39 - 5.4.40
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-04 07:36:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-05 14:36:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.38
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-03-03 05:42:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-03-04 12:42:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.37
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-02-11 14:50:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-02-12 21:50:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.35 - 5.4.36
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-02-11 14:50:04.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-02-12 21:50:04.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.34
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-02-11 14:50:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-02-12 21:50:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.32
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2014-09-10 19:12:39.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2014-09-12 02:12:39.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.31
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2014-09-10 19:12:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2014-09-12 02:12:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.30
int(31) object(DateTime)#1 (3) { ["date"]=> string(26) "2014-09-10 19:12:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(26) "2014-09-12 02:12:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.3.29, 5.4.23, 5.4.28 - 5.4.29
int(31) object(DateTime)#1 (3) { ["date"]=> string(19) "2014-09-10 19:12:33" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(19) "2014-09-12 02:12:33" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.25 - 5.4.27
int(31) object(DateTime)#1 (3) { ["date"]=> string(19) "2014-09-10 19:12:37" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(19) "2014-09-12 02:12:37" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.24
int(31) object(DateTime)#1 (3) { ["date"]=> string(19) "2014-09-10 19:12:36" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(19) "2014-09-12 02:12:36" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.3.28, 5.4.22
int(31) object(DateTime)#1 (3) { ["date"]=> string(19) "2014-09-10 19:12:32" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(19) "2014-09-12 02:12:32" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.18 - 5.4.21
int(31) object(DateTime)#1 (3) { ["date"]=> string(19) "2013-11-11 22:13:21" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(19) "2013-11-13 05:13:21" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.4.3 - 5.4.17
int(31) object(DateTime)#1 (3) { ["date"]=> string(19) "2013-11-11 22:13:22" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(19) "2013-11-13 05:13:22" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.3.17 - 5.3.27, 5.4.0 - 5.4.2
int(31) object(DateTime)#1 (3) { ["date"]=> string(19) "2013-11-11 22:13:23" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(19) "2013-11-13 05:13:23" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.3.3 - 5.3.16
int(31) object(DateTime)#1 (3) { ["date"]=> string(19) "2013-11-11 22:13:24" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(19) "2013-11-13 05:13:24" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.3.0 - 5.3.2
int(31) object(DateTime)#1 (3) { ["date"]=> string(19) "2013-11-11 22:13:25" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" } object(DateTime)#2 (3) { ["date"]=> string(19) "2013-11-13 05:13:25" ["timezone_type"]=> int(3) ["timezone"]=> string(3) "UTC" }
Output for 5.2.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/svirc on line 2 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/svirc on line 2 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/svirc on line 4 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/svirc on line 12 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/svirc on line 13 Fatal error: Call to undefined method DateTime::diff() in /in/svirc on line 8
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/svirc on line 2 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/svirc on line 2 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/svirc on line 4 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/svirc on line 12 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/svirc on line 13 Fatal error: Class 'DateTime' not found in /in/svirc on line 12
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/svirc on line 2 Parse error: syntax error, unexpected T_STRING, expecting ')' in /in/svirc on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/svirc on line 2 Parse error: parse error, unexpected T_STRING, expecting ')' in /in/svirc on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/svirc on line 2 Parse error: parse error, expecting `')'' in /in/svirc on line 2
Process exited with code 255.