3v4l.org

run code in 500+ PHP versions simultaneously
<?php // This is fine. class Foo { public $prop; } class FooChild extends Foo { public mixed $prop; }
Output for rfc.property-hooks
Fatal error: Type of FooChild::$prop must not be defined (as in class Foo) in /in/mScQS on line 8
Process exited with code 255.
Output for git.master_jit, git.master
Fatal error: Type of FooChild::$prop must be omitted to match the parent definition in class Foo in /in/mScQS on line 8 Stack trace: #0 {main}
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:
37.56 ms | 498 KiB | 3 Q