3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8Ynog
function name:  (null)
number of ops:  13
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   NEW                                              $1      'B'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   25     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        INIT_METHOD_CALL                                         !0, 'getDataA'
          6        DO_FCALL                                      0  $4      
          7        SEND_VAR                                                 $4
          8        INIT_METHOD_CALL                                         !0, 'getDataB'
          9        DO_FCALL                                      0  $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Class A:
Function getdataa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8Ynog
function name:  getDataA
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   FETCH_OBJ_R                                      ~0      'city'
          1        INIT_ARRAY                                       ~1      ~0
          2        FETCH_OBJ_R                                      ~2      'name'
          3        ADD_ARRAY_ELEMENT                                ~1      ~2
          4      > RETURN                                                   ~1
   10     5*     > RETURN                                                   null

End of function getdataa

End of class A.

Class B:
Function getdatab:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8Ynog
function name:  getDataB
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   FETCH_OBJ_R                                      ~0      'city'
          1        INIT_ARRAY                                       ~1      ~0
          2        FETCH_OBJ_R                                      ~2      'name'
          3        ADD_ARRAY_ELEMENT                                ~1      ~2
          4      > RETURN                                                   ~1
   21     5*     > RETURN                                                   null

End of function getdatab

Function getdataa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8Ynog
function name:  getDataA
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   FETCH_OBJ_R                                      ~0      'city'
          1        INIT_ARRAY                                       ~1      ~0
          2        FETCH_OBJ_R                                      ~2      'name'
          3        ADD_ARRAY_ELEMENT                                ~1      ~2
          4      > RETURN                                                   ~1
   10     5*     > RETURN                                                   null

End of function getdataa

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.7 ms | 973 KiB | 14 Q