3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I {} class A {} class B {} class C extends A implements I {} var_dump(is_a('C', 'C', true), is_a('C', 'I', true), is_a('C', 'A', true), is_a('C', 'B', true));

preferences:
24.99 ms | 405 KiB | 5 Q