fork download
  1. <?php
  2.  
  3. interface SomeInterface { }
  4.  
  5. class Part implements SomeInterface {}
  6. class Engine extends Part { }
  7.  
  8. $engine = new Engine;
  9. var_dump($engine instanceof SomeInterface);
  10.  
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
bool(true)