3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class ClassThatExists { // } $class = new ClassThatExists(); if ($class instanceof NonExistentClass) { var_dump('instanceof NonExistentClass'); } if ($class instanceof ClassThatExists) { var_dump('instanceof ClassThatExists'); }
based on fdIQO
Output for 7.1.25 - 7.3.1
string(26) "instanceof ClassThatExists"