3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test1 { function test() { $a = array('_REQUEST' => array('foo'=>'bar')); extract($a); var_dump($_REQUEST); var_dump(get_defined_vars()); } } $_REQUEST['foo'] = 'foo'; $t = new Test1; $t->test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CGhDu
function name:  (null)
number of ops:  9
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   FETCH_W                      global              $1      '_REQUEST'
          1        ASSIGN_DIM                                               $1, 'foo'
          2        OP_DATA                                                  'foo'
   12     3        NEW                                              $3      'Test1'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $3
   13     6        INIT_METHOD_CALL                                         !0, 'test'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class Test1:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CGhDu
function name:  test
number of ops:  14
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'extract'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
    6     4        INIT_FCALL                                               'var_dump'
          5        FETCH_R                      global              ~3      '_REQUEST'
          6        SEND_VAL                                                 ~3
          7        DO_ICALL                                                 
    7     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'get_defined_vars'
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                                 
    8    13      > RETURN                                                   null

End of function test

End of class Test1.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.11 ms | 1399 KiB | 19 Q