3v4l.org

run code in 300+ PHP versions simultaneously
<?php class NodeViewController { private function isValidRel($rel):bool { return true; } } class Othercontroller extends NodeViewController { public function test() { return $this->isValidRel('yep', 'nope'); } private function isValidRel($rel, $different) { return true; } } $x = new Othercontroller(); var_export($x->test());

preferences:
31.06 ms | 403 KiB | 5 Q