<?php class Foo { } $foo = new Foo(); $bar = Foo; $fooEhInstancia = $foo instanceof Foo; $barEhInstancia = $bar instanceof Foo;
Standard input is empty
bool(true) bool(false)
PHP Notice: Use of undefined constant Foo - assumed 'Foo' in /home/93alJb/prog.php on line 7