1. $b = new stdClass;


  2. $b->method = function($x) { var_dump( $x); };


  3. $b->method->__invoke(‘dads’); // string(4) "dads"


  4. $b->method(‘dads’); // PHP Fatal error: Call to undefined method stdClass::method() in php shell code on line 1


  5. ($b->method)(‘dads’); // PHP Parse error: syntax error, unexpected ‘(‘ in php shell code on line 1



*задумался*