fork(2) download
  1. <?php
  2. class SuperFoo {
  3. __get($name) {
  4. return $this->$name;
  5. }
  6. __set($name, $value) {
  7. $this->$name = $value;
  8. }
  9. }
  10.  
  11. class Foo {
  12. private $bar = '';
  13. }
  14.  
  15. $foo = new Foo();
  16. $foo->bar = "Why it doesn't work?";
  17. var_dump($foo);
  18. ?>
Runtime error #stdin #stdout 0.01s 20592KB
stdin
Standard input is empty
stdout
Standard output is empty