3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { class ATest { function testMethod() { var_dump(debug_backtrace()); } } } namespace B { use A\ATest; $a = new ATest(); $a->testMethod(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2P86t
function name:  (null)
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $1      'A%5CATest'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_METHOD_CALL                                         !0, 'testMethod'
          4        DO_FCALL                                      0          
   18     5      > RETURN                                                   1

Class A\ATest:
Function testmethod:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2P86t
function name:  testMethod
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_NS_FCALL_BY_NAME                                    'A%5Cvar_dump'
          1        INIT_NS_FCALL_BY_NAME                                    'A%5Cdebug_backtrace'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR_NO_REF_EX                                       $0
          4        DO_FCALL                                      0          
    8     5      > RETURN                                                   null

End of function testmethod

End of class A\ATest.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.78 ms | 1394 KiB | 17 Q