3v4l.org

run code in 300+ PHP versions simultaneously
<?php //set_error_handler(function($errno, $errstr){ throw new Exception($errstr);}); class DateTimeCustom extends DateTime { public function __construct($datetime, $timezone = null) { @parent::__construct($datetime, $timezone); 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 Exception: Failed to parse time string (sunday 09 blabla 2001 103:46:40 CEST) at position 7 (0): Unexpected character in /in/ITrL5:9 Stack trace: #0 /in/ITrL5(9): DateTime->__construct('sunday 09 blabl...', NULL) #1 /in/ITrL5(15): DateTimeCustom->__construct('sunday 09 blabl...') #2 {main} thrown in /in/ITrL5 on line 9
Process exited with code 255.
Output for rfc.property-hooks
Fatal error: Uncaught DateMalformedStringException: Failed to parse time string (sunday 09 blabla 2001 103:46:40 CEST) at position 7 (0): Unexpected character in /in/ITrL5:9 Stack trace: #0 /in/ITrL5(9): DateTime->__construct('sunday 09 blabl...', NULL) #1 /in/ITrL5(15): DateTimeCustom->__construct('sunday 09 blabl...') #2 {main} thrown in /in/ITrL5 on line 9
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:
34.99 ms | 401 KiB | 8 Q