fork(1) download
  1. <?php
  2.  
  3. class ClassGovno {
  4. public function Govno () {
  5. echo 'govno';
  6. }
  7. }
  8. class ClassMocha {
  9. public function Mocha () {
  10. $oGovno->Govno();
  11. }
  12. }
  13.  
  14. $oGovno = new ClassGovno();
  15. $oMocha = new ClassMocha();
  16.  
  17. $oMocha->Mocha();
  18.  
  19. ?>
Runtime error #stdin #stdout #stderr 0.02s 82880KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Notice:  Undefined variable: oGovno in /home/tithJ2/prog.php on line 10
PHP Fatal error:  Uncaught Error: Call to a member function Govno() on null in /home/tithJ2/prog.php:10
Stack trace:
#0 /home/tithJ2/prog.php(17): ClassMocha->Mocha()
#1 {main}
  thrown in /home/tithJ2/prog.php on line 10