Instance of in PHP

Instanceof & is_a both checks if the object is of this class or has this class as one of its parents. Where, is_a is a function, whereas instanceof is a language construct. is_a will be significantly slower (since it has all the overhead of executing a function call), but the overall execution time is minimal in either method.
Click here for Instance of example in PHP