3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DateTimeCustom extends DateTime { public function __construct($datetime, $timezone = null) { try { parent::__construct($datetime, $timezone); } catch (Exception $e) { var_dump($this, parent::getLastErrors(), parent::format('c')); } } } $date = new DateTimeCustom("Funktionsansvar...");
Output for git.master, git.master_jit
Fatal error: Uncaught Error: The DateTime object has not been correctly initialized by its constructor in /in/rJFhv:13 Stack trace: #0 /in/rJFhv(13): DateTime->format('c') #1 /in/rJFhv(19): DateTimeCustom->__construct('Funktionsansvar...') #2 {main} thrown in /in/rJFhv on line 13
Process exited with code 255.
Output for rfc.property-hooks
Fatal error: Uncaught DateObjectError: Object of type DateTimeCustom (inheriting DateTime) has not been correctly initialized by calling parent::__construct() in its constructor in /in/rJFhv:13 Stack trace: #0 /in/rJFhv(13): DateTime->format('c') #1 /in/rJFhv(19): DateTimeCustom->__construct('Funktionsansvar...') #2 {main} thrown in /in/rJFhv on line 13
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:
39.4 ms | 401 KiB | 8 Q