It won't be noticeably slow. Remember this code is run interactively by a human. PHP's reflection is not going to put runtime over 250ms in most applications.