3v4l.org

run code in 300+ PHP versions simultaneously
<?php function findEvent(\DateTime $e) { var_dump($e); } findEvent(new DateTime()); findEvent(null);
Output for git.master
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-20 20:23:42.003736" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Fatal error: Uncaught TypeError: findEvent(): Argument #1 ($e) must be of type 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 git.master_jit
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-20 20:23:42.003648" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Fatal error: Uncaught TypeError: findEvent(): Argument #1 ($e) must be of type 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 rfc.property-hooks
object(DateTime)#1 (3) { ["date"]=> string(26) "2015-10-20 20:23:42.003414" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } Fatal error: Uncaught TypeError: findEvent(): Argument #1 ($e) must be of type 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.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
74.18 ms | 401 KiB | 8 Q