3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 2; function innerScope() { export($GLOBALS); print_r(get_defined_vars()); } innerScope();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lFW7p
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/lFW7p
function name:  innerScope
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL_BY_NAME                                       'export'
          1        CHECK_FUNC_ARG                                           
          2        FETCH_FUNC_ARG               global              $0      'GLOBALS'
          3        SEND_FUNC_ARG                                            $0
          4        DO_FCALL                                      0          
    8     5        INIT_FCALL                                               'print_r'
          6        INIT_FCALL                                               'get_defined_vars'
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                                 
    9    10      > RETURN                                                   null

End of function innerscope

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.98 ms | 1397 KiB | 18 Q