fork(1) download
  1. <?php
  2. class Foo {
  3.  
  4. }
  5.  
  6. $foo = new Foo();
  7. $bar = Foo;
  8.  
  9. $fooEhInstancia = $foo instanceof Foo;
  10. $barEhInstancia = $bar instanceof Foo;
  11.  
  12. var_dump($fooEhInstancia);
  13. var_dump($barEhInstancia);
Success #stdin #stdout #stderr 0.01s 20520KB
stdin
Standard input is empty
stdout
bool(true)
bool(false)
stderr
PHP Notice:  Use of undefined constant Foo - assumed 'Foo' in /home/93alJb/prog.php on line 7