3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassThatExists { // } $class = new ClassThatExists(); if ($class instanceof NonExistentClass) { var_dump('instanceof NonExistentClass'); } if ($class instanceof ClassThatExists) { var_dump('instanceof ClassThatExists'); }

preferences:
26.9 ms | 404 KiB | 5 Q