3v4l.org

run code in 500+ PHP versions simultaneously
<?php $original = unserialize('O:8:"stdClass":1:{s:4:"1134";i:1;}'); $arr = []; foreach($original as $key => $values) { $arr[$key] = $values; } echo $arr[1134] // outputs 1 ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/B94OS
function name:  (null)
number of ops:  15
compiled vars:  !0 = $original, !1 = $arr, !2 = $values, !3 = $key
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'unserialize'
          1        SEND_VAL                                                     'O%3A8%3A%22stdClass%22%3A1%3A%7Bs%3A4%3A%221134%22%3Bi%3A1%3B%7D'
          2        DO_ICALL                                             $4      
          3        ASSIGN                                                       !0, $4
    3     4        ASSIGN                                                       !1, <array>
    4     5      > FE_RESET_R                                           $7      !0, ->11
          6    > > FE_FETCH_R                                           ~8      $7, !2, ->11
          7    >   ASSIGN                                                       !3, ~8
    5     8        ASSIGN_DIM                                                   !1, !3
          9        OP_DATA                                                      !2
    4    10      > JMP                                                          ->6
         11    >   FE_FREE                                                      $7
    7    12        FETCH_DIM_R                                          ~11     !1, 1134
         13        ECHO                                                         ~11
    8    14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
179.27 ms | 3012 KiB | 14 Q