3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'bar'; $bar = &$foo; $x = get_defined_vars(); var_dump($x['bar']); $x['bar'] = 'herp'; var_dump($x['foo']); var_dump($x['bar']); var_dump($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BNlpN
function name:  (null)
number of ops:  23
compiled vars:  !0 = $foo, !1 = $bar, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'bar'
    4     1        ASSIGN_REF                                               !1, !0
    6     2        INIT_FCALL                                               'get_defined_vars'
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !2, $5
    7     5        INIT_FCALL                                               'var_dump'
          6        FETCH_DIM_R                                      ~7      !2, 'bar'
          7        SEND_VAL                                                 ~7
          8        DO_ICALL                                                 
    8     9        ASSIGN_DIM                                               !2, 'bar'
         10        OP_DATA                                                  'herp'
    9    11        INIT_FCALL                                               'var_dump'
         12        FETCH_DIM_R                                      ~10     !2, 'foo'
         13        SEND_VAL                                                 ~10
         14        DO_ICALL                                                 
   10    15        INIT_FCALL                                               'var_dump'
         16        FETCH_DIM_R                                      ~12     !2, 'bar'
         17        SEND_VAL                                                 ~12
         18        DO_ICALL                                                 
   11    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.9 ms | 1386 KiB | 17 Q