fork download
  1. <?php
  2. class Person{
  3. public function __construct(){
  4. echo "I'm a person.\n";
  5. }
  6. }
  7. class Man extends Person{
  8. public function __construct(){
  9. //parent::__construct();
  10. echo "I'm a man.\n";
  11. }
  12. }
  13.  
  14. $i = new Man;
  15. ?>
Success #stdin #stdout 0.01s 13112KB
stdin
Standard input is empty
stdout
I'm a man.