3v4l.org

run code in 500+ PHP versions simultaneously
<?php func2(); func1(); function func1() { echo 'func1'; function func2() { echo 'func2'; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bpXPp
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                           'func2'
          1        DO_FCALL                                          0          
    4     2        INIT_FCALL_BY_NAME                                           'func1'
          3        DO_FCALL                                          0          
   11     4      > RETURN                                                       1

Function func1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bpXPp
function name:  func1
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                         'func1'
    8     1        DECLARE_FUNCTION                                             'func2'
   11     2      > RETURN                                                       null


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

End of Dynamic Function 0

End of function func1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
173.36 ms | 2168 KiB | 13 Q