3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AA { function BB() { return '3'; } } function CC() { return '4'; } $DD = new aa(); echo $dd->bb().cc();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F5d6v
function name:  (null)
number of ops:  10
compiled vars:  !0 = $DD, !1 = $dd
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $2      'aa'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   14     3        INIT_METHOD_CALL                                         !1, 'bb'
          4        DO_FCALL                                      0  $5      
          5        INIT_FCALL                                               'cc'
          6        DO_FCALL                                      0  $6      
          7        CONCAT                                           ~7      $5, $6
          8        ECHO                                                     ~7
          9      > RETURN                                                   1

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

End of function cc

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

End of function bb

End of class AA.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.09 ms | 1397 KiB | 14 Q