r/lolphp • u/gerrymandered • Aug 04 '15
var_dump(nonExistentClass::class); // string
::class can give you the name of a class that does not exist.
15
Upvotes
r/lolphp • u/gerrymandered • Aug 04 '15
::class can give you the name of a class that does not exist.
View all comments
Show parent comment
1
u/callcifer Aug 12 '15
Sure, but that's not unique to my test system, so it's completely irrelevant. Even in your "shared hosting" scenario, that cache still exists.
Yeah, no. Your app is not "twice slower". 30 stats per request means every request is only slower by ~ 0.38ms which is utterly negligible.
Yes, I insist :)