<?php $obj = new class() { private function foo() { } }; if (method_exists($obj, 'foo')) { $obj->foo(); }
You have javascript disabled. You will not be able to edit any code.