3v4l.org

run code in 300+ PHP versions simultaneously
<?php $j = count(get_defined_vars()); $a=8; $b=['b','mm']; $k = get_defined_vars(); $vars=array_slice($k, $j + 1); foreach($vars as $key => $var) { if(is_array($var)) { $var = serialize($var); } $settings[strtoupper($key)] = $var; } var_dump($settings);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 30
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 30
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 24
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 24
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/335Bt
function name:  (null)
number of ops:  35
compiled vars:  !0 = $j, !1 = $a, !2 = $b, !3 = $k, !4 = $vars, !5 = $var, !6 = $key, !7 = $settings
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'get_defined_vars'
          1        DO_ICALL                                         $8      
          2        COUNT                                            ~9      $8
          3        ASSIGN                                                   !0, ~9
   10     4        ASSIGN                                                   !1, 8
   11     5        ASSIGN                                                   !2, <array>
   15     6        INIT_FCALL                                               'get_defined_vars'
          7        DO_ICALL                                         $13     
          8        ASSIGN                                                   !3, $13
   16     9        INIT_FCALL                                               'array_slice'
         10        SEND_VAR                                                 !3
         11        ADD                                              ~15     !0, 1
         12        SEND_VAL                                                 ~15
         13        DO_ICALL                                         $16     
         14        ASSIGN                                                   !4, $16
   21    15      > FE_RESET_R                                       $18     !4, ->30
         16    > > FE_FETCH_R                                       ~19     $18, !5, ->30
         17    >   ASSIGN                                                   !6, ~19
   23    18        TYPE_CHECK                                  128          !5
         19      > JMPZ                                                     ~21, ->24
   24    20    >   INIT_FCALL                                               'serialize'
         21        SEND_VAR                                                 !5
         22        DO_ICALL                                         $22     
         23        ASSIGN                                                   !5, $22
   26    24    >   INIT_FCALL                                               'strtoupper'
         25        SEND_VAR                                                 !6
         26        DO_ICALL                                         $24     
         27        ASSIGN_DIM                                               !7, $24
         28        OP_DATA                                                  !5
   21    29      > JMP                                                      ->16
         30    >   FE_FREE                                                  $18
   32    31        INIT_FCALL                                               'var_dump'
         32        SEND_VAR                                                 !7
         33        DO_ICALL                                                 
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.74 ms | 1396 KiB | 23 Q