3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(serialize((new \ReflectionClass(\DateTime::class))->newInstanceWithoutConstructor()));
Output for git.master, git.master_jit
Fatal error: Uncaught Error: The DateTime object has not been correctly initialized by its constructor in /in/MIlqB:3 Stack trace: #0 [internal function]: DateTime->__serialize() #1 /in/MIlqB(3): serialize(Object(DateTime)) #2 {main} thrown in /in/MIlqB on line 3
Process exited with code 255.
Output for rfc.property-hooks
Fatal error: Uncaught DateObjectError: Object of type DateTime has not been correctly initialized by calling parent::__construct() in its constructor in /in/MIlqB:3 Stack trace: #0 [internal function]: DateTime->__serialize() #1 /in/MIlqB(3): serialize(Object(DateTime)) #2 {main} thrown in /in/MIlqB on line 3
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:
151.64 ms | 1784 KiB | 4 Q