3v4l.org

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

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.62 ms | 1069 KiB | 16 Q