3v4l.org

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

End of function innerscope

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.42 ms | 1397 KiB | 18 Q