get_mangled_object_vars
pestphp/pest
Supported Versions: PHP 7 >= 7.4.0, PHP 8
Returns an array of mangled object properties
<?php get_mangled_object_vars
(
object $object
): array