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 = 3; $i < count($exploded); $i++) { $driverBuilder = $driverBuilder[$exploded[$i]]; } echo $driverBuilder;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 7
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 7
Branch analysis from position: 14
Branch analysis from position: 7
filename:       /in/rqefg
function name:  (null)
number of ops:  16
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, 3
          6      > JMP                                                      ->11
   17     7    >   FETCH_DIM_R                                      ~10     !1, !3
          8        FETCH_DIM_R                                      ~11     !2, ~10
          9        ASSIGN                                                   !2, ~11
   16    10        PRE_INC                                                  !3
         11    >   COUNT                                            ~14     !1
         12        IS_SMALLER                                               !3, ~14
         13      > JMPNZ                                                    ~15, ->7
   20    14    >   ECHO                                                     !2
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.6 ms | 1394 KiB | 13 Q