- is_subclass_of: documentation ( source)
<?php
interface MyInterface {}
class MyClass implements MyInterface {}
// This will fail on 5.3.8 and earlier, this has been fixed
// in #53727, but doc does not reflect that.
echo (is_subclass_of('MyClass', 'MyInterface') ? 'true' : 'false');