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; } } }
No results found

preferences:
129.9 ms | 1440 KiB | 7 Q