3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 2; $vars = get_defined_vars(); function innerScope() { print_r($GLOBALS['vars']); } innerScope();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bf7CZ
function name:  (null)
number of ops:  7
compiled vars:  !0 = $foo, !1 = $vars
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 2
    5     1        INIT_FCALL                                               'get_defined_vars'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !1, $3
   13     4        INIT_FCALL                                               'innerscope'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function innerscope:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bf7CZ
function name:  innerScope
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'print_r'
          1        FETCH_R                      global              ~0      'GLOBALS'
          2        FETCH_DIM_R                                      ~1      ~0, 'vars'
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                                 
   11     5      > RETURN                                                   null

End of function innerscope

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.4 ms | 1397 KiB | 18 Q