3v4l.org

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

Function innerscope:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JtHEq
function name:  innerScope
number of ops:  7
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   BIND_GLOBAL                                              !0, 'foo'
    8     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'get_defined_vars'
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                                 
    9     6      > RETURN                                                   null

End of function innerscope

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.41 ms | 1388 KiB | 18 Q