3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function testMe() { var_dump(debug_backtrace()[1]); } public function callMe() { $this->testMe(); } } $test = new Test; $test->callMe();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tjbuj
function name:  (null)
number of ops:  6
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   18     3        INIT_METHOD_CALL                                         !0, 'callMe'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Test:
Function testme:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tjbuj
function name:  testMe
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'debug_backtrace'
          2        DO_ICALL                                         $0      
          3        FETCH_DIM_R                                      ~1      $0, 1
          4        SEND_VAL                                                 ~1
          5        DO_ICALL                                                 
    8     6      > RETURN                                                   null

End of function testme

Function callme:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tjbuj
function name:  callMe
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_METHOD_CALL                                         'testMe'
          1        DO_FCALL                                      0          
   13     2      > RETURN                                                   null

End of function callme

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.59 ms | 1395 KiB | 17 Q