3v4l.org

run code in 300+ PHP versions simultaneously
<?php 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(); var_dump( $DD );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NQH8c
function name:  (null)
number of ops:  13
compiled vars:  !0 = $dd, !1 = $DD
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $2      'aa'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   18     3        INIT_METHOD_CALL                                         !0, 'bb'
          4        DO_FCALL                                      0  $5      
          5        INIT_FCALL                                               'cc'
          6        DO_FCALL                                      0  $6      
          7        CONCAT                                           ~7      $5, $6
          8        ECHO                                                     ~7
   20     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

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

End of function bb

End of class AA.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.04 ms | 1399 KiB | 16 Q