fork download
  1. <?php
  2.  
  3. class PhpSux {}
  4. class Php7SuxToo {}
  5.  
  6. class Cls
  7. {
  8. public function Fun(PhpSux $a){}
  9. public function Fun(Php7SuxToo $a){}
  10. }
  11.  
  12. $x = new Cls();
  13. $x->Fun(new PhpSux());
  14. $x->Fun(new Php7Sux());
Runtime error #stdin #stdout #stderr 0.03s 52480KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Fatal error:  Cannot redeclare Cls::Fun() in /home/NHW8PH/prog.php on line 9