3v4l.org

run code in 500+ 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:
59.33 ms | 1341 KiB | 5 Q