3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function findEvent(\DateTime $e) { var_dump($e); } findEvent(new DateTime()); findEvent(null);
Output for 7.2.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-20 20:23:42.003484" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Fatal error: Uncaught TypeError: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O:3 Stack trace: #0 /in/G7v8O(8): findEvent(NULL) #1 {main} thrown in /in/G7v8O on line 3
Process exited with code 255.
Output for 7.1.10
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-20 20:23:42.005263" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Fatal error: Uncaught TypeError: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O:3 Stack trace: #0 /in/G7v8O(8): findEvent(NULL) #1 {main} thrown in /in/G7v8O on line 3
Process exited with code 255.
Output for 7.1.7
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-20 20:23:42.005149" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Fatal error: Uncaught TypeError: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O:3 Stack trace: #0 /in/G7v8O(8): findEvent(NULL) #1 {main} thrown in /in/G7v8O on line 3
Process exited with code 255.
Output for 7.1.6
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-20 20:23:42.012200" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Fatal error: Uncaught TypeError: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O:3 Stack trace: #0 /in/G7v8O(8): findEvent(NULL) #1 {main} thrown in /in/G7v8O on line 3
Process exited with code 255.
Output for 7.1.5
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-20 20:23:42.010172" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Fatal error: Uncaught TypeError: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O:3 Stack trace: #0 /in/G7v8O(8): findEvent(NULL) #1 {main} thrown in /in/G7v8O on line 3
Process exited with code 255.
Output for 7.1.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-20 20:23:42.004136" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Fatal error: Uncaught TypeError: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O:3 Stack trace: #0 /in/G7v8O(8): findEvent(NULL) #1 {main} thrown in /in/G7v8O on line 3
Process exited with code 255.
Output for 7.0.20
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-20 20:23:42.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Fatal error: Uncaught TypeError: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O:3 Stack trace: #0 /in/G7v8O(8): findEvent(NULL) #1 {main} thrown in /in/G7v8O on line 3
Process exited with code 255.
Output for 7.0.6
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-03 00:25:35.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Fatal error: Uncaught TypeError: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O:3 Stack trace: #0 /in/G7v8O(8): findEvent(NULL) #1 {main} thrown in /in/G7v8O on line 3
Process exited with code 255.
Output for 7.0.5
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-02 13:59:11.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Fatal error: Uncaught TypeError: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O:3 Stack trace: #0 /in/G7v8O(8): findEvent(NULL) #1 {main} thrown in /in/G7v8O on line 3
Process exited with code 255.
Output for 7.0.4
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-09 22:55:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Fatal error: Uncaught TypeError: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O:3 Stack trace: #0 /in/G7v8O(8): findEvent(NULL) #1 {main} thrown in /in/G7v8O on line 3
Process exited with code 255.
Output for 7.0.3
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-17 23:20:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Fatal error: Uncaught TypeError: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O:3 Stack trace: #0 /in/G7v8O(8): findEvent(NULL) #1 {main} thrown in /in/G7v8O on line 3
Process exited with code 255.
Output for 7.0.2
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-21 10:03:42.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Fatal error: Uncaught TypeError: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O:3 Stack trace: #0 /in/G7v8O(8): findEvent(NULL) #1 {main} thrown in /in/G7v8O on line 3
Process exited with code 255.
Output for 7.0.1
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-23 09:42:45.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Fatal error: Uncaught TypeError: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O:3 Stack trace: #0 /in/G7v8O(8): findEvent(NULL) #1 {main} thrown in /in/G7v8O on line 3
Process exited with code 255.
Output for 7.0.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-26 12:48:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Fatal error: Uncaught TypeError: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O:3 Stack trace: #0 /in/G7v8O(8): findEvent(NULL) #1 {main} thrown in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.6.28
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-20 20:23:42.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.6.21
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-01 19:31:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.6.20
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-09 09:14:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.6.19
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-06 20:19:43.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.6.18
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-14 08:32:24.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.6.17
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-19 03:56:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.6.16
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-27 14:32:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.6.15
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-28 15:29:58.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.6.14
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-01 18:13:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.6.13
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-14 22:10:34.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.6.12
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-19 11:14:02.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.6.11
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-22 18:32:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.6.10
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-24 20:10:45.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.6.9
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-27 01:15:07.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.6.8
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-29 08:49:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.6.7
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-24 18:37:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.5.35
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-21 22:44:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.5.34
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-10 14:51:19.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.5.33
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-08 10:07:37.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.5.32
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-15 19:09:06.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.5.31
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-20 06:50:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.5.30
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-31 17:35:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.5.29
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-16 12:12:57.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.5.28
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-20 14:23:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.5.27
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-21 17:03:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.5.26
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-25 22:25:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.5.25
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-28 04:32:02.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.5.24
object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-30 12:11:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.4.38 - 5.4.45
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-20 20:23:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.4.30 - 5.4.37
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-20 20:23:53.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.4.29
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-20 20:23:53" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.4.22 - 5.4.28
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-20 20:23:54" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.4.15 - 5.4.21
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-20 20:23:55" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.4.6 - 5.4.14
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-20 20:23:56" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.3.27 - 5.4.5
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-20 20:23:57" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.3.20 - 5.3.26
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-20 20:23:58" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.
Output for 5.3.19
object(DateTime)#1 (3) { ["date"]=> string(19) "2015-10-20 20:23:59" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Catchable fatal error: Argument 1 passed to findEvent() must be an instance of DateTime, null given, called in /in/G7v8O on line 8 and defined in /in/G7v8O on line 3
Process exited with code 255.