3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SomeClass { protected stdClass $a; } $type = (new \ReflectionClass(SomeClass::class))->getProperty('a')->getType(); var_dump($type->isBuiltin());