3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A; echo __NAMESPACE__; class inA { function inAMethod1() { echo "inAMethod1"; function inAMethod2() { echo "inAMethod2"; echo __NAMESPACE__; } } } namespace B; echo __NAMESPACE__; $a = new \A\inA(); $a->inAMethod1(); \inAMethod2();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9tZFP
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'A'
   23     1        ECHO                                                     'B'
   25     2        NEW                                              $1      'A%5CinA'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   26     5        INIT_METHOD_CALL                                         !0, 'inAMethod1'
          6        DO_FCALL                                      0          
   28     7        INIT_FCALL_BY_NAME                                       'inAMethod2'
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function %00a%5Cinamethod2%2Fin%2F9tZFP%3A13%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9tZFP
function name:  A\inAMethod2
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ECHO                                                     'inAMethod2'
   16     1        ECHO                                                     'A'
   17     2      > RETURN                                                   null

End of function %00a%5Cinamethod2%2Fin%2F9tZFP%3A13%240

Class A\inA:
Function inamethod1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9tZFP
function name:  inAMethod1
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     'inAMethod1'
   13     1        DECLARE_FUNCTION                                         'a%5Cinamethod2'
   18     2      > RETURN                                                   null

End of function inamethod1

End of class A\inA.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.69 ms | 1394 KiB | 13 Q