Description Introduced in PHP 8.0, class name literals1 is a new alternative to get_class() Syntax $foo = new Foo(); var_dump($foo:class) Footnotes Footnotes https://wiki.php.net/rfc/class_name_literal_on_object ↩