3v4l.org

run code in 300+ PHP versions simultaneously
<?php $driver = [ '0' => [ 'options' => [ 'servers' => [ '1' => [ 'host' => 'nox.exchangecore.com' ] ] ] ] ]; $exploded = array('Cache','object','redis','servers','1','host'); $driverBuilder = $driver[0]['options']; for($i = 4; $i < count($exploded); $i++) { var_dump($driverBuilder); $driverBuilder = $driverBuilder[$exploded[$i]]; } echo $driverBuilder;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
Branch analysis from position: 7
filename:       /in/78kIF
function name:  (null)
number of ops:  19
compiled vars:  !0 = $driver, !1 = $exploded, !2 = $driverBuilder, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   13     1        ASSIGN                                                   !1, <array>
   15     2        FETCH_DIM_R                                      ~6      !0, 0
          3        FETCH_DIM_R                                      ~7      ~6, 'options'
          4        ASSIGN                                                   !2, ~7
   16     5        ASSIGN                                                   !3, 4
          6      > JMP                                                      ->14
   17     7    >   INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                                 
   18    10        FETCH_DIM_R                                      ~11     !1, !3
         11        FETCH_DIM_R                                      ~12     !2, ~11
         12        ASSIGN                                                   !2, ~12
   16    13        PRE_INC                                                  !3
         14    >   COUNT                                            ~15     !1
         15        IS_SMALLER                                               !3, ~15
         16      > JMPNZ                                                    ~16, ->7
   21    17    >   ECHO                                                     !2
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.09 ms | 940 KiB | 16 Q