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("sunday 09 blabla 2001 103:46:40 CEST");
Output for git.master, git.master_jit
Fatal error: Uncaught Error: The DateTime object has not been correctly initialized by its constructor in /in/ivDOq:13 Stack trace: #0 /in/ivDOq(13): DateTime->format('c') #1 /in/ivDOq(19): DateTimeCustom->__construct('sunday 09 blabl...') #2 {main} thrown in /in/ivDOq 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/ivDOq:13 Stack trace: #0 /in/ivDOq(13): DateTime->format('c') #1 /in/ivDOq(19): DateTimeCustom->__construct('sunday 09 blabl...') #2 {main} thrown in /in/ivDOq 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:
43.87 ms | 401 KiB | 8 Q