3v4l.org

run code in 300+ 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:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   FETCH_W                      global              $0      'GLOBALS'
          1        ASSIGN_DIM                                               $0, 'var1'
          2        OP_DATA                                                  5
    6     3        INIT_FCALL_BY_NAME                                       'fint'
          4        DO_FCALL                                      0  $2      
          5        ECHO                                                     $2
    7     6      > RETURN                                                   1
    8     7*     > 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:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   FETCH_R                      global              ~2      'GLOBALS'
          1        FETCH_DIM_R                                      ~3      ~2, 'var1'
          2        ADD                                              ~4      ~3, 7
          3        FETCH_W                      global              $0      'GLOBALS'
          4        ASSIGN_DIM                                               $0, 'var1'
          5        OP_DATA                                                  ~4
   11     6        FETCH_R                      global              ~5      'GLOBALS'
          7        FETCH_DIM_R                                      ~6      ~5, 'var1'
          8      > RETURN                                                   ~6
   12     9*     > RETURN                                                   null

End of function fint

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.22 ms | 1398 KiB | 13 Q