Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- declare(strict_types=1);
- namespace Acme;
- class AbsoluteFunctionReferenceBench
- {
- public function benchRelativeReference() : void
- {
- for ($i = 0; $i < 100; $i++) {
- get_class($this);
- }
- usleep(1);
- }
- public function benchAbsoluteReference() : void
- {
- for ($i = 0; $i < 100; $i++) {
- \get_class($this);
- }
- usleep(1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement