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--) { $insert = $return; $return = array(); $return[$arg[$i-1]] = $insert; } 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 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 8
Branch analysis from position: 17
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 24
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 24
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 8
Branch analysis from position: 17
Branch analysis from position: 8
filename:       /in/F6crA
function name:  (null)
number of ops:  32
compiled vars:  !0 = $arg, !1 = $limit, !2 = $return, !3 = $i, !4 = $insert, !5 = $v, !6 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        COUNT                                            ~8      !0
          2        SUB                                              ~9      ~8, 1
          3        ASSIGN                                                   !1, ~9
    6     4        FETCH_DIM_R                                      ~11     !0, !1
          5        ASSIGN                                                   !2, ~11
    7     6        ASSIGN                                                   !3, !1
          7      > JMP                                                      ->15
    8     8    >   ASSIGN                                                   !4, !2
    9     9        ASSIGN                                                   !2, <array>
   10    10        SUB                                              ~16     !3, 1
         11        FETCH_DIM_R                                      ~17     !0, ~16
         12        ASSIGN_DIM                                               !2, ~17
         13        OP_DATA                                                  !4
    7    14        PRE_DEC                                                  !3
         15    >   IS_SMALLER                                               0, !3
         16      > JMPNZ                                                    ~20, ->8
   13    17    > > FE_RESET_R                                       $21     !2, ->24
         18    > > FE_FETCH_R                                       ~22     $21, !5, ->24
         19    >   ASSIGN                                                   !6, ~22
   14    20        FETCH_W                      global              $24     '_SESSION'
         21        ASSIGN_DIM                                               $24, !6
         22        OP_DATA                                                  !5
   13    23      > JMP                                                      ->18
         24    >   FE_FREE                                                  $21
   17    25        ECHO                                                     '%3Cpre%3E'
   18    26        INIT_FCALL                                               'print_r'
         27        FETCH_R                      global              ~26     '_SESSION'
         28        SEND_VAL                                                 ~26
         29        DO_ICALL                                                 
   19    30        ECHO                                                     '%3C%2Fpre%3E'
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.66 ms | 1396 KiB | 15 Q