3v4l.org

run code in 300+ PHP versions simultaneously
<?php asdasdads(); 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/4QsAp
function name:  (null)
number of ops:  25
compiled vars:  !0 = $dd, !1 = $DD
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'asdasdads'
          1        DO_FCALL                                      0          
    3     2        INIT_FCALL                                               'define'
          3        SEND_VAL                                                 'AA'
          4        SEND_VAL                                                 'bb'
          5        DO_ICALL                                                 
   18     6        NEW                                              $4      'aa'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !0, $4
   20     9        INIT_METHOD_CALL                                         !0, 'bb'
         10        DO_FCALL                                      0  $7      
         11        INIT_FCALL                                               'cc'
         12        DO_FCALL                                      0  $8      
         13        CONCAT                                           ~9      $7, $8
         14        FETCH_CONSTANT                                   ~10     'aa'
         15        CONCAT                                           ~11     ~9, ~10
         16        FETCH_CONSTANT                                   ~12     'bb'
         17        CONCAT                                           ~13     ~11, ~12
         18        ECHO                                                     ~13
   22    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
   24    22        INIT_FCALL_BY_NAME                                       'ccc'
         23        DO_FCALL                                      0          
         24      > RETURN                                                   1

Function cc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4QsAp
function name:  CC
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E > > RETURN                                                   '4'
   16     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/4QsAp
function name:  aa
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN_OBJ                                               'ee'
          1        OP_DATA                                                  '3'
    8     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/4QsAp
function name:  BB
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   FETCH_OBJ_R                                      ~0      'EE'
          1      > RETURN                                                   ~0
   11     2*     > RETURN                                                   null

End of function bb

End of class AA.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.63 ms | 1403 KiB | 18 Q