3v4l.org

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

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

End of function %00a%5Cinamethod2%2Fin%2FBCHf6%3A11%240

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

End of function inamethod1

End of class A\inA.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.66 ms | 1385 KiB | 13 Q