3v4l.org

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

Function fext:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/emC6H
function name:  fext
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   FETCH_W                          global              $0      'var1'
          1        ASSIGN                                                       $0, 5
    6     2        INIT_FCALL_BY_NAME                                           'fint'
          3        DO_FCALL                                          0  $2      
          4        ECHO                                                         $2
    7     5      > RETURN                                                       1
    8     6*     > RETURN                                                       null

End of function fext

Function fint:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/emC6H
function name:  fint
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   FETCH_R                          global              ~1      'var1'
          1        ADD                                                  ~2      ~1, 7
          2        FETCH_W                          global              $0      'var1'
          3        ASSIGN                                                       $0, ~2
   11     4        FETCH_R                          global              ~4      'var1'
          5      > RETURN                                                       ~4
   12     6*     > RETURN                                                       null

End of function fint

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156 ms | 1432 KiB | 13 Q