3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_SESSION ['test'] [ 't****' ] = 'Hello'; var_dump($_SESSION); echo "\n" . $_SESSION [ 'test' ] [ 't****' ]; $var = "test2"; for ($i = 4 ; $i > 0 ; $i--){ $var [$i] = "*"; echo "\n" . $_SESSION['test'][$var]; } $var = "test2"; for ($i = 0 ; $i < 4 ; $i++){ $var = substr($var, count($var)-1, -$i) . '*'; echo "\n" . $_SESSION['test'][$var]; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 16
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 29
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 29
Branch analysis from position: 47
Branch analysis from position: 29
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 16
Branch analysis from position: 26
Branch analysis from position: 16
filename:       /in/A5AID
function name:  (null)
number of ops:  48
compiled vars:  !0 = $var, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_W                      global              $2      '_SESSION'
          1        FETCH_DIM_W                                      $3      $2, 'test'
          2        ASSIGN_DIM                                               $3, 't%2A%2A%2A%2A'
          3        OP_DATA                                                  'Hello'
    4     4        INIT_FCALL                                               'var_dump'
          5        FETCH_R                      global              ~5      '_SESSION'
          6        SEND_VAL                                                 ~5
          7        DO_ICALL                                                 
    6     8        FETCH_R                      global              ~7      '_SESSION'
          9        FETCH_DIM_R                                      ~8      ~7, 'test'
         10        FETCH_DIM_R                                      ~9      ~8, 't%2A%2A%2A%2A'
         11        CONCAT                                           ~10     '%0A', ~9
         12        ECHO                                                     ~10
    8    13        ASSIGN                                                   !0, 'test2'
   10    14        ASSIGN                                                   !1, 4
         15      > JMP                                                      ->24
   11    16    >   ASSIGN_DIM                                               !0, !1
         17        OP_DATA                                                  '%2A'
   12    18        FETCH_R                      global              ~14     '_SESSION'
         19        FETCH_DIM_R                                      ~15     ~14, 'test'
         20        FETCH_DIM_R                                      ~16     ~15, !0
         21        CONCAT                                           ~17     '%0A', ~16
         22        ECHO                                                     ~17
   10    23        PRE_DEC                                                  !1
         24    >   IS_SMALLER                                               0, !1
         25      > JMPNZ                                                    ~19, ->16
   15    26    >   ASSIGN                                                   !0, 'test2'
   17    27        ASSIGN                                                   !1, 0
         28      > JMP                                                      ->45
   18    29    >   INIT_FCALL                                               'substr'
         30        SEND_VAR                                                 !0
         31        COUNT                                            ~22     !0
         32        SUB                                              ~23     ~22, 1
         33        SEND_VAL                                                 ~23
         34        MUL                                              ~24     !1, -1
         35        SEND_VAL                                                 ~24
         36        DO_ICALL                                         $25     
         37        CONCAT                                           ~26     $25, '%2A'
         38        ASSIGN                                                   !0, ~26
   19    39        FETCH_R                      global              ~28     '_SESSION'
         40        FETCH_DIM_R                                      ~29     ~28, 'test'
         41        FETCH_DIM_R                                      ~30     ~29, !0
         42        CONCAT                                           ~31     '%0A', ~30
         43        ECHO                                                     ~31
   17    44        PRE_INC                                                  !1
         45    >   IS_SMALLER                                               !1, 4
         46      > JMPNZ                                                    ~33, ->29
   20    47    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.75 ms | 1400 KiB | 17 Q