3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['foo'] = 'foo'; globals(); function gloabls() { $global = "_POST"; echo $$global['foo']; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I8Esb
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $0      '_POST'
          1        ASSIGN_DIM                                               $0, 'foo'
          2        OP_DATA                                                  'foo'
    4     3        INIT_FCALL_BY_NAME                                       'globals'
          4        DO_FCALL                                      0          
    9     5      > RETURN                                                   1

Function gloabls:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I8Esb
function name:  gloabls
number of ops:  5
compiled vars:  !0 = $global
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, '_POST'
    8     1        FETCH_R                      local               ~2      !0
          2        FETCH_DIM_R                                      ~3      ~2, 'foo'
          3        ECHO                                                     ~3
    9     4      > RETURN                                                   null

End of function gloabls

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.06 ms | 1393 KiB | 13 Q