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'; var_dump($d->format('c'));
Output for git.master, git.master_jit
Deprecated: Creation of dynamic property DateTime::$date is deprecated in /in/niJsq on line 5 Deprecated: Creation of dynamic property DateTime::$timezone_type is deprecated in /in/niJsq on line 6 Deprecated: Creation of dynamic property DateTime::$timezone is deprecated in /in/niJsq on line 7 Fatal error: Uncaught Error: The DateTime object has not been correctly initialized by its constructor in /in/niJsq:9 Stack trace: #0 /in/niJsq(9): DateTime->format('c') #1 {main} thrown in /in/niJsq on line 9
Process exited with code 255.
Output for rfc.property-hooks
Deprecated: Creation of dynamic property DateTime::$date is deprecated in /in/niJsq on line 5 Deprecated: Creation of dynamic property DateTime::$timezone_type is deprecated in /in/niJsq on line 6 Deprecated: Creation of dynamic property DateTime::$timezone is deprecated in /in/niJsq 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/niJsq:9 Stack trace: #0 /in/niJsq(9): DateTime->format('c') #1 {main} thrown in /in/niJsq 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:
161.22 ms | 408 KiB | 5 Q