3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = (new ReflectionClass(DateTime::class))->newInstanceWithoutConstructor(); $d->date = '1990-01-17 10:28:07'; $d->timezone_type = 3; $d->timezone = 'US/Pacific'; $d = unserialize(serialize($d)); var_dump($d->format('c'));
Output for git.master, git.master_jit
Deprecated: Creation of dynamic property DateTime::$date is deprecated in /in/DROXa on line 5 Deprecated: Creation of dynamic property DateTime::$timezone_type is deprecated in /in/DROXa on line 6 Deprecated: Creation of dynamic property DateTime::$timezone is deprecated in /in/DROXa on line 7 Fatal error: Uncaught Error: The DateTime object has not been correctly initialized by its constructor in /in/DROXa:9 Stack trace: #0 [internal function]: DateTime->__serialize() #1 /in/DROXa(9): serialize(Object(DateTime)) #2 {main} thrown in /in/DROXa on line 9
Process exited with code 255.
Output for rfc.property-hooks
Deprecated: Creation of dynamic property DateTime::$date is deprecated in /in/DROXa on line 5 Deprecated: Creation of dynamic property DateTime::$timezone_type is deprecated in /in/DROXa on line 6 Deprecated: Creation of dynamic property DateTime::$timezone is deprecated in /in/DROXa on line 7 Fatal error: Uncaught DateObjectError: Object of type DateTime has not been correctly initialized by calling parent::__construct() in its constructor in /in/DROXa:9 Stack trace: #0 [internal function]: DateTime->__serialize() #1 /in/DROXa(9): serialize(Object(DateTime)) #2 {main} thrown in /in/DROXa 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:
95.08 ms | 411 KiB | 6 Q