3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'bar'; $baz = 'qux'; $variables = get_defined_vars(); function foo($page) { global $variables; foreach ($variables as $name => $_) { if (in_array($name, array('_POST', '_GET', '_COOKIE', '_FILES', '_SESSION'))) continue; global $$name; } var_dump($foo); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DgiE7
function name:  (null)
number of ops:  6
compiled vars:  !0 = $foo, !1 = $baz, !2 = $variables
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'bar'
    4     1        ASSIGN                                                   !1, 'qux'
    6     2        INIT_FCALL                                               'get_defined_vars'
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !2, $5
   17     5      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 12
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 12
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/DgiE7
function name:  foo
number of ops:  17
compiled vars:  !0 = $page, !1 = $variables, !2 = $_, !3 = $name, !4 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        BIND_GLOBAL                                              !1, 'variables'
   10     2      > FE_RESET_R                                       $5      !1, ->12
          3    > > FE_FETCH_R                                       ~6      $5, !2, ->12
          4    >   ASSIGN                                                   !3, ~6
   11     5        IN_ARRAY                                                 !3, <array>
          6      > JMPZ                                                     ~8, ->8
          7    > > JMP                                                      ->3
   13     8    >   FETCH_W                      global lock         $9      !3
          9        FETCH_W                      local               $10     !3
         10        ASSIGN_REF                                               $10, $9
   10    11      > JMP                                                      ->3
         12    >   FE_FREE                                                  $5
   16    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !4
         15        DO_ICALL                                                 
   17    16      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.67 ms | 1396 KiB | 17 Q