3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.72 ms | 1394 KiB | 17 Q