m1(); $this->m2(); $this->prop->m3(); $this->a->b->m4(); $obj->prop->m5(); UserModel::query(); self::sHelper(); static::sHelper(); parent::pHelper(); $var::vm(); \Qual\Cls::qm(); UserModel::factory($x)->where('a'); $this->factory($x)->go(); foo()->fluent(); $a?->maybe()->chained(); "chain"->upper(); $fn = 'x'; $fn(); ($x)('arg'); strlen(...); $this->m2(...); Cls::sm(...); new UserModel(); new \App\Models\User(); new Models\User(1); new static(); new self(); new parent(); new $cls(); $anon = new class extends BaseAnon implements IAnon { public function anonMethod(): void { inner_anon_call(); } }; new Widget(make_arg()); $m = match ($x) { 1 => one_case(), default => other_case(), }; $$x = 5; $interp = "{$this->x} and $u prefix"; $here = <<y} text EOT; $now = <<<'EOT' nowdoc plain EOT; echo SomeCls::CONST_READ; $clsName = UserModel::class; $propRead = UserModel::$conn; $rel = self::REL_CONST; $qualRead = \Qual\Cls::QCONST; $suit = Suit::Hearts; } public function nester($arr, $x): void { function innerNamed(): void { inner_call(); } if (!class_exists('Poly')) { class Poly { const POLY_MAX = 3; public function pm(): void { poly_call(); } } } $c = function () use (&$x) { closure_call(); }; $a = fn ($v) => arrow_call($v); usort($arr, 'cmp_items'); array_map('App\Svc\namespaced_fn', $arr); call_user_func([$this, 'm2']); call_user_func([UserModel::class, 'sm']); call_user_func(['Cls', 'sm']); register_shutdown_function('Cls::shutdown'); $x->map('not_captured'); plain_call('not_a_hof_string'); } public function reader(): int { $sum = MULTI_A + TYPED_MAX; $s = "interp TYPED_MAX read: {$this->x} MULTI_B"; $varOccurrence = $MULTI_A; return $sum + self::TYPED_MAX; } } interface Shape extends Base1, Base2, \Qual\Base3 { public function area(): float; const SHAPE_KIND = 'geo'; } trait SoftDeletes { const TRAIT_CONST = 1; public function restore(): void { $this->doRestore(); } } enum Suit: string implements HasColor { case Hearts = 'H'; case Spades = 'S'; const ENUM_MAX = 4; public function color(): string { return enum_color($this); } } enum Pure { case A; case B; } abstract class AbstractBase { abstract protected function hook(): void; }