Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class A {
- private $x;
- private $y;
- public function set_x($x) {
- $this->x = $x;
- }
- public function set_y($y) {
- $this->y = $y;
- }
- }
- $start_time = microtime(TRUE);
- for ($i = 0; $i < 5000000; ++$i) {
- $a = new A();
- $a->set_x('x');
- $a->set_y('y');
- unset($a);
- }
- $end_time = microtime(TRUE);
- echo $end_time - $start_time . PHP_EOL;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement