3v4l.org

run code in 300+ PHP versions simultaneously
<?php // This is fine. class Foo { public $ordinary; public function bar($a) {} // Untyped param. } class FooChild extends Foo { public mixed $ordinary; function bar(mixed $a) {} // Child declares the param as mixed, which is allowed. }
Output for git.master_jit, git.master, rfc.property-hooks
Fatal error: Type of FooChild::$ordinary must not be defined (as in class Foo) in /in/seDWM 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:
142.37 ms | 995 KiB | 7 Q