3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { } class B extends A { } $x = 'B'; var_dump( is_subclass_of( $x, 'A' ) );
Output for 5.0.3 - 7.3.0rc4
bool(true)
Output for 4.3.0 - 5.0.2
bool(false)