Passed
Branch master (7fff96)
by Jordan
06:01
created

DebugBench   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 2
1
<?php
2
3
class DebugBench
4
{
5
6
    public function benchDebugBacktrace()
7
    {
8
        $caller = debug_backtrace()[1]['function'];
9
    }
10
11
    public function benchExceptionBacktrace()
12
    {
13
        $e = new Exception();
14
        $caller = $e->getTrace()[1]['function'];
15
    }
16
17
}