3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "blah 2015 yar"; $pos = strpos($string, "20"); $year = substr($string, $pos, 4); $end_year = "12/31/" . $year; echo $end_year; $end_time = new DateTime($end_year); var_dump($end_time); $start_time = new DateTime(); var_dump($start_time); $date1 = $end_time->date; echo $date1; $date2 = $start_time->date; $diff = $date1->diff($date2); var_dump($diff); ?>
based on sIqUB
Output for 7.1.0
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2014-10-02 22:32:30.004068" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Uncaught Error: Call to a member function diff() on string in /in/3ONR7:15 Stack trace: #0 {main} thrown in /in/3ONR7 on line 15
Process exited with code 255.
Output for 7.0.14
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2014-10-02 22:32:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Uncaught Error: Call to a member function diff() on string in /in/3ONR7:15 Stack trace: #0 {main} thrown in /in/3ONR7 on line 15
Process exited with code 255.
Output for 7.0.6
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-05-03 10:16:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Uncaught Error: Call to a member function diff() on string in /in/3ONR7:15 Stack trace: #0 {main} thrown in /in/3ONR7 on line 15
Process exited with code 255.
Output for 7.0.5
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-02 23:03:35.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Uncaught Error: Call to a member function diff() on string in /in/3ONR7:15 Stack trace: #0 {main} thrown in /in/3ONR7 on line 15
Process exited with code 255.
Output for 7.0.4
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-10 09:39:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Uncaught Error: Call to a member function diff() on string in /in/3ONR7:15 Stack trace: #0 {main} thrown in /in/3ONR7 on line 15
Process exited with code 255.
Output for 7.0.3
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-18 10:18:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Uncaught Error: Call to a member function diff() on string in /in/3ONR7:15 Stack trace: #0 {main} thrown in /in/3ONR7 on line 15
Process exited with code 255.
Output for 7.0.2
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-22 16:17:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Uncaught Error: Call to a member function diff() on string in /in/3ONR7:15 Stack trace: #0 {main} thrown in /in/3ONR7 on line 15
Process exited with code 255.
Output for 7.0.1
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-23 20:53:19.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Uncaught Error: Call to a member function diff() on string in /in/3ONR7:15 Stack trace: #0 {main} thrown in /in/3ONR7 on line 15
Process exited with code 255.
Output for 7.0.0
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-26 22:25:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Uncaught Error: Call to a member function diff() on string in /in/3ONR7:15 Stack trace: #0 {main} thrown in /in/3ONR7 on line 15
Process exited with code 255.
Output for hhvm-3.12.0
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-12 12:53:28.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Notice: Undefined property: DateTime::$date in /in/3ONR7 on line 12 Notice: Undefined property: DateTime::$date in /in/3ONR7 on line 14 Fatal error: Uncaught exception 'BadMethodCallException' with message 'Call to a member function diff() on a non-object (null)' in /in/3ONR7:15 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.0
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-30 11:58:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Notice: Undefined property: DateTime::$date in /in/3ONR7 on line 12 Notice: Undefined property: DateTime::$date in /in/3ONR7 on line 14 Fatal error: Uncaught exception 'BadMethodCallException' with message 'Call to a member function diff() on a non-object (null)' in /in/3ONR7:15 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.28
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2014-10-02 22:32:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.6.21
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-05-02 05:36:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.6.20
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-09 22:02:37.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.6.19
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-07 17:46:45.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.6.18
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-15 01:51:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.6.17
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-19 14:32:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.6.16
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-28 00:13:26.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.6.15
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-29 01:18:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.6.14
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-02 03:37:22.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.6.13
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-15 07:31:35.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.6.12
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-19 21:19:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.6.11
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-23 04:21:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.6.10
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-25 06:06:18.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.6.9
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-27 11:05:16.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.6.8
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-29 19:13:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.5.35
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-05-22 09:23:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.5.34
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-11 00:22:26.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.5.33
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-08 20:43:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.5.32
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-17 03:26:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.5.31
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-03-20 17:18:02.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.5.30
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-01 03:14:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.5.29
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-16 21:38:34.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.5.28
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-21 00:34:28.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.5.27
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-22 02:52:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.5.26
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-26 08:32:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.5.25
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-04-28 14:51:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.5.24
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2016-05-23 22:11:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.4.45
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-20 09:51:58.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.4.44
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-20 09:51:54.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.4.43
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-20 09:51:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.4.42
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-20 09:51:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.4.41
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-20 09:51:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.4.40
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-20 09:51:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.4.39
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-09-20 09:51:45.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.4.38
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-03-15 12:55:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.4.36 - 5.4.37
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-03-15 12:55:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.4.34 - 5.4.35
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2015-03-15 12:55:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.4.30 - 5.4.32
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(26) "2015-12-31 00:00:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(26) "2014-10-02 22:32:35.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.4.16 - 5.4.29
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(19) "2015-12-31 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(19) "2014-10-02 22:32:35" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.3.26 - 5.4.15
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(19) "2015-12-31 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(19) "2014-10-02 22:32:36" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.3.6 - 5.3.25
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(19) "2015-12-31 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(19) "2014-10-02 22:32:37" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.3.0 - 5.3.5
12/31/2015object(DateTime)#1 (3) { ["date"]=> string(19) "2015-12-31 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } object(DateTime)#2 (3) { ["date"]=> string(19) "2014-10-02 22:32:38" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } 2015-12-31 00:00:00 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.2.6 - 5.2.17
12/31/2015object(DateTime)#1 (0) { } object(DateTime)#2 (0) { } Notice: Undefined property: DateTime::$date in /in/3ONR7 on line 12 Notice: Undefined property: DateTime::$date in /in/3ONR7 on line 14 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.2.0 - 5.2.5
12/31/2015object(DateTime)#1 (0) { } object(DateTime)#2 (0) { } Notice: Undefined property: DateTime::$date in /in/3ONR7 on line 12 Notice: Undefined property: DateTime::$date in /in/3ONR7 on line 14 Fatal error: Call to a member function diff() on a non-object in /in/3ONR7 on line 15
Process exited with code 255.
Output for 5.0.0 - 5.1.6
12/31/2015 Fatal error: Class 'DateTime' not found in /in/3ONR7 on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.9
12/31/2015 Fatal error: Cannot instantiate non-existent class: datetime in /in/3ONR7 on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
12/31/2015 Fatal error: Cannot instantiate non-existent class: datetime in /in/3ONR7 on line 8