3v4l.org

run code in 300+ PHP versions simultaneously
<?php define( 'AA', 'bb' ); class AA { var $EE = ''; function aa() { $this->ee = '3'; } function BB() { return $this->EE; } } function CC() { return '4'; } $dd = new aa(); echo $dd->bb().cc().aa.bb; var_dump( $DD ); ccc();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HWGjt
function name:  (null)
number of ops:  23
compiled vars:  !0 = $dd, !1 = $DD
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'AA'
          2        SEND_VAL                                                 'bb'
          3        DO_ICALL                                                 
   17     4        NEW                                              $3      'aa'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $3
   19     7        INIT_METHOD_CALL                                         !0, 'bb'
          8        DO_FCALL                                      0  $6      
          9        INIT_FCALL                                               'cc'
         10        DO_FCALL                                      0  $7      
         11        CONCAT                                           ~8      $6, $7
         12        FETCH_CONSTANT                                   ~9      'aa'
         13        CONCAT                                           ~10     ~8, ~9
         14        FETCH_CONSTANT                                   ~11     'bb'
         15        CONCAT                                           ~12     ~10, ~11
         16        ECHO                                                     ~12
   21    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
   23    20        INIT_FCALL_BY_NAME                                       'ccc'
         21        DO_FCALL                                      0          
         22      > RETURN                                                   1

Function cc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HWGjt
function name:  CC
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E > > RETURN                                                   '4'
   15     1*     > RETURN                                                   null

End of function cc

Class AA:
Function aa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HWGjt
function name:  aa
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN_OBJ                                               'ee'
          1        OP_DATA                                                  '3'
    7     2      > RETURN                                                   null

End of function aa

Function bb:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HWGjt
function name:  BB
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   FETCH_OBJ_R                                      ~0      'EE'
          1      > RETURN                                                   ~0
   10     2*     > RETURN                                                   null

End of function bb

End of class AA.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.18 ms | 1390 KiB | 18 Q