3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arg = array('objet', 'membre', 'id', 5); $limit = count($arg) - 1; $return = $arg[$limit]; for($i = $limit; $i > 0; $i--) $return = array($arg[$i-1] => $return); foreach($return as $k => $v) $_SESSION[$k] = $v; echo '<pre>'; print_r($_SESSION); echo '</pre>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 22
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 22
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 8
Branch analysis from position: 15
Branch analysis from position: 8
filename:       /in/HOJbL
function name:  (null)
number of ops:  30
compiled vars:  !0 = $arg, !1 = $limit, !2 = $return, !3 = $i, !4 = $v, !5 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        COUNT                                            ~7      !0
          2        SUB                                              ~8      ~7, 1
          3        ASSIGN                                                   !1, ~8
    6     4        FETCH_DIM_R                                      ~10     !0, !1
          5        ASSIGN                                                   !2, ~10
    7     6        ASSIGN                                                   !3, !1
          7      > JMP                                                      ->13
    8     8    >   SUB                                              ~13     !3, 1
          9        FETCH_DIM_R                                      ~14     !0, ~13
         10        INIT_ARRAY                                       ~15     !2, ~14
         11        ASSIGN                                                   !2, ~15
    7    12        PRE_DEC                                                  !3
         13    >   IS_SMALLER                                               0, !3
         14      > JMPNZ                                                    ~18, ->8
   10    15    > > FE_RESET_R                                       $19     !2, ->22
         16    > > FE_FETCH_R                                       ~20     $19, !4, ->22
         17    >   ASSIGN                                                   !5, ~20
   11    18        FETCH_W                      global              $22     '_SESSION'
         19        ASSIGN_DIM                                               $22, !5
         20        OP_DATA                                                  !4
   10    21      > JMP                                                      ->16
         22    >   FE_FREE                                                  $19
   13    23        ECHO                                                     '%3Cpre%3E'
   14    24        INIT_FCALL                                               'print_r'
         25        FETCH_R                      global              ~24     '_SESSION'
         26        SEND_VAL                                                 ~24
         27        DO_ICALL                                                 
   15    28        ECHO                                                     '%3C%2Fpre%3E'
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.86 ms | 1401 KiB | 15 Q