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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.61 ms | 1401 KiB | 21 Q