Guest User

Untitled

a guest
Nov 9th, 2011
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. <?php
  2. class A {
  3.     public $a = "a";
  4.     private $b = "b";
  5.  
  6.     public function getB() {
  7.         return $this->b;
  8.     }
  9. }
  10. $obj = new A();
  11. $mt = microtime();
  12. $a = $obj->a;
  13. echo microtime() - $mt . "<br />";
  14. $mt = microtime();
  15. $b = $obj->getB();
  16. echo microtime() - $mt . "<br />";
  17.  
Advertisement
Add Comment
Please, Sign In to add comment