3v4l.org

run code in 500+ PHP versions simultaneously
<?php function a() { $b = &$c[0]; var_dump(get_defined_vars()); $c[0] = 1; var_dump(get_defined_vars()); $c = [1]; var_dump(get_defined_vars()); } a();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U5MvY
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                                   'a'
          1        DO_FCALL                                          0          
          2      > RETURN                                                       1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U5MvY
function name:  a
number of ops:  21
compiled vars:  !0 = $b, !1 = $c
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   FETCH_DIM_W                                          $2      !1, 0
          1        ASSIGN_REF                                                   !0, $2
    4     2        INIT_FCALL                                                   'var_dump'
          3        INIT_FCALL                                                   'get_defined_vars'
          4        DO_ICALL                                             $4      
          5        SEND_VAR                                                     $4
          6        DO_ICALL                                                     
    5     7        ASSIGN_DIM                                                   !1, 0
          8        OP_DATA                                                      1
    6     9        INIT_FCALL                                                   'var_dump'
         10        INIT_FCALL                                                   'get_defined_vars'
         11        DO_ICALL                                             $7      
         12        SEND_VAR                                                     $7
         13        DO_ICALL                                                     
    7    14        ASSIGN                                                       !1, <array>
    8    15        INIT_FCALL                                                   'var_dump'
         16        INIT_FCALL                                                   'get_defined_vars'
         17        DO_ICALL                                             $10     
         18        SEND_VAR                                                     $10
         19        DO_ICALL                                                     
    9    20      > RETURN                                                       null

End of function a

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.26 ms | 2288 KiB | 16 Q