--TEST-- Indirect function calls --FILE-- 'id', 'b' => 'udef'])->a)()()()()('var_dump')(6); $id = function($x) { return $x; }; $id($id)('var_dump')(7); (function($x) { return $x; })('id')('var_dump')(8); ($f = function($x = null) use (&$f) { return $x ?: $f; })()()()('var_dump')(9); class Test { public static function id($x = [__CLASS__, 'id']) { return $x; } } $obj = new Test; [$obj, 'id']()('id')($id)('var_dump')(10); ['Test', 'id']()()('var_dump')(11); 'id'()('id')('var_dump')(12); ('i' . 'd')()('var_dump')(13); '\id'('var_dump')(14); ?> --EXPECT-- int(0) int(1) int(2) int(3) int(4) int(5) int(6) int(7) int(8) int(9) int(10) int(11) int(12) int(13) int(14)