fork download
  1. <?php
  2.  
  3. class A {
  4. private function p() {
  5. echo __METHOD__, PHP_EOL;
  6. }
  7.  
  8. function c() {
  9. self::p();
  10. static::p();
  11. A::p();
  12. }
  13. }
  14.  
  15. $a = new A;
  16. $a->c();
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
A::p
A::p
A::p