Difference between ::class vs ::className() in Yii2?
<p>i know both gives same results but i am looking forward to hear about performance.</p>

<p>i am not sure but i think..</p>

<ul>
<li><p>"<code>MyClass::className()</code>" cause that class file to be loaded as well (its Yii function whom body is just simply <code>get_called_class()</code>)</p></li>
<li><p>"<code>MyClass::class</code>" i think this php's native class property don't load class php file and just return its name based on current namespace or <code>use</code>.</p></li>
</ul>

<p>Let me know if i am right? or highlight your knowledge please.</p>

<p>There are many places where we just want full qualitfied class name even it's not going to be used that time. but i also don't like putting hardcoded strings (due to hard refactoring)</p>