3v4l.org

run code in 300+ PHP versions simultaneously
<?php // This is fine. class Foo { function bar($a) {} // Untyped param. } class FooChild extends Foo { function bar(mixed $a) {} // Child declares the param as mixed. } // This is an error... class Person { public $name { set(mixed $value) { $this->name = $value; } } }

preferences:
152.06 ms | 1439 KiB | 7 Q