fork download
  1. <?php
  2.  
  3. class Foo {}
  4.  
  5. $foo = new Foo;
  6.  
  7. $foo->bar;
  8.  
  9. $foo = new stdClass;
  10.  
  11. $foo->bar;
  12.  
  13.  
Success #stdin #stdout #stderr 0.02s 24392KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Notice:  Undefined property: Foo::$bar in /home/wABqaU/prog.php on line 7
PHP Notice:  Undefined property: stdClass::$bar in /home/wABqaU/prog.php on line 11