3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dfgg = '1'; $GLOBALS = array('dfgg' => 1,'eEhF' => 2); function d() { $eEhF = '2'; global ${'dfgg'}; var_dump($eEhF); } d();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5I2vb
function name:  (null)
number of ops:  6
compiled vars:  !0 = $dfgg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '1'
    4     1        FETCH_W                      global              $2      'GLOBALS'
          2        ASSIGN                                                   $2, <array>
   10     3        INIT_FCALL                                               'd'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Function d:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5I2vb
function name:  d
number of ops:  6
compiled vars:  !0 = $eEhF, !1 = $dfgg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, '2'
    7     1        BIND_GLOBAL                                              !1, 'dfgg'
    8     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    9     5      > RETURN                                                   null

End of function d

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
263.29 ms | 1397 KiB | 17 Q