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."/n"; $end_time = new DateTime($end_year); print_r($end_time); $start_time = new DateTime(); print_r($start_time); $date1 = $end_time->date; echo $date1; $date2 = $start_time->date; $diff = $date1->diff($date2); var_dump($diff); ?>
based on IDbuU
Output for 7.1.0
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2014-10-02 22:40:06.004119 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Uncaught Error: Call to a member function diff() on string in /in/1ijjq:15 Stack trace: #0 {main} thrown in /in/1ijjq on line 15
Process exited with code 255.
Output for 7.0.14
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2014-10-02 22:40:06.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Uncaught Error: Call to a member function diff() on string in /in/1ijjq:15 Stack trace: #0 {main} thrown in /in/1ijjq on line 15
Process exited with code 255.
Output for 7.0.6
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-05-03 16:57:21.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Uncaught Error: Call to a member function diff() on string in /in/1ijjq:15 Stack trace: #0 {main} thrown in /in/1ijjq on line 15
Process exited with code 255.
Output for 7.0.5
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-04-03 05:26:57.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Uncaught Error: Call to a member function diff() on string in /in/1ijjq:15 Stack trace: #0 {main} thrown in /in/1ijjq on line 15
Process exited with code 255.
Output for 7.0.4
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-03-10 17:06:54.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Uncaught Error: Call to a member function diff() on string in /in/1ijjq:15 Stack trace: #0 {main} thrown in /in/1ijjq on line 15
Process exited with code 255.
Output for 7.0.3
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-03-18 17:51:04.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Uncaught Error: Call to a member function diff() on string in /in/1ijjq:15 Stack trace: #0 {main} thrown in /in/1ijjq on line 15
Process exited with code 255.
Output for 7.0.2
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-03-22 23:57:30.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Uncaught Error: Call to a member function diff() on string in /in/1ijjq:15 Stack trace: #0 {main} thrown in /in/1ijjq on line 15
Process exited with code 255.
Output for 7.0.1
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-03-24 04:06:40.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Uncaught Error: Call to a member function diff() on string in /in/1ijjq:15 Stack trace: #0 {main} thrown in /in/1ijjq on line 15
Process exited with code 255.
Output for 7.0.0
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-03-27 06:03:38.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Uncaught Error: Call to a member function diff() on string in /in/1ijjq:15 Stack trace: #0 {main} thrown in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.6.28
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2014-10-02 22:40:06.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.6.21
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-05-02 12:07:46.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.6.20
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-04-10 04:25:32.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.6.19
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-03-08 01:12:59.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.6.18
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-03-15 09:45:02.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.6.17
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-03-19 21:38:39.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.6.16
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-03-28 06:51:04.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.6.15
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-03-29 07:42:04.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.6.14
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-04-02 09:37:50.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.6.13
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-04-15 13:55:49.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.6.12
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-04-20 04:22:35.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.6.11
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-04-23 10:52:29.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.6.10
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-04-25 12:48:20.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.6.9
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-04-27 17:57:22.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.6.8
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-04-30 02:41:37.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on string in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.5.35
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-05-22 17:51:34.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.5.34
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-04-11 06:39:15.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.5.33
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-03-09 03:53:28.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.5.32
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-03-17 13:28:12.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.5.31
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-03-21 00:31:11.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.5.30
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-04-01 09:35:19.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.5.29
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-04-17 04:20:39.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.5.28
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-04-21 07:33:22.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.5.27
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-04-22 09:27:56.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.5.26
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-04-26 15:29:46.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.5.25
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-04-28 22:20:38.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.5.24
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2016-05-24 05:02:11.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.4.45
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-09-18 17:21:36.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.4.44
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-08-22 10:32:34.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.4.43
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-08-22 10:32:31.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.4.42
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-08-22 10:32:29.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.4.41
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-08-22 10:32:27.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.4.39 - 5.4.40
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-08-22 10:32:23.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.4.38
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-03-15 12:56:28.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.4.37
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-03-15 12:56:21.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.4.35 - 5.4.36
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-03-15 12:56:20.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.4.34
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-03-15 12:56:19.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.4.32
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2014-10-02 22:40:10.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.4.30 - 5.4.31
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2014-10-02 22:40:11.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00.000000 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.4.11 - 5.4.29
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2014-10-02 22:40:11 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.3.20 - 5.4.10
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2014-10-02 22:40:12 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.3.0 - 5.3.19
12/31/2015/nDateTime Object ( [date] => 2015-12-31 00:00:00 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2014-10-02 22:40:13 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) 2015-12-31 00:00:00 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.2.6 - 5.2.17
12/31/2015/nDateTime Object ( ) DateTime Object ( ) Notice: Undefined property: DateTime::$date in /in/1ijjq on line 12 Notice: Undefined property: DateTime::$date in /in/1ijjq on line 14 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.2.0 - 5.2.5
12/31/2015/nDateTime Object ( ) DateTime Object ( ) Notice: Undefined property: DateTime::$date in /in/1ijjq on line 12 Notice: Undefined property: DateTime::$date in /in/1ijjq on line 14 Fatal error: Call to a member function diff() on a non-object in /in/1ijjq on line 15
Process exited with code 255.
Output for 5.0.0 - 5.1.6
12/31/2015/n Fatal error: Class 'DateTime' not found in /in/1ijjq on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.9
12/31/2015/n Fatal error: Cannot instantiate non-existent class: datetime in /in/1ijjq on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
12/31/2015/n Fatal error: Cannot instantiate non-existent class: datetime in /in/1ijjq on line 8