3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface HumanInterface { } class Human implements HumanInterface { } class Dog { } $human = new Human; echo is_a($human, 'HumanInterface') ? 'true' : 'false';

preferences:
36.19 ms | 402 KiB | 5 Q