3v4l.org

run code in 300+ PHP versions simultaneously
<?php $store = array();$store['Chain']['Image'] = "hubba";$store['Block']['Image'] = "bubba";if(empty($store['Image'])){ if(!empty($store['Chain']['Image'])) { $store['Image'] = $store['Chain']['Image']; } elseif(!empty($store['Block']['Image'])) { $store['Image'] = $store['Block']['Image']; }}print_r($store['Image']);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 26
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 26
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
Branch analysis from position: 26
filename:       /in/3A9sD
function name:  (null)
number of ops:  31
compiled vars:  !0 = $store
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
          1        FETCH_DIM_W                                      $2      !0, 'Chain'
          2        ASSIGN_DIM                                               $2, 'Image'
          3        OP_DATA                                                  'hubba'
          4        FETCH_DIM_W                                      $4      !0, 'Block'
          5        ASSIGN_DIM                                               $4, 'Image'
          6        OP_DATA                                                  'bubba'
          7        ISSET_ISEMPTY_DIM_OBJ                         1          !0, 'Image'
          8      > JMPZ                                                     ~6, ->26
          9    >   FETCH_DIM_IS                                     ~7      !0, 'Chain'
         10        ISSET_ISEMPTY_DIM_OBJ                         1  ~8      ~7, 'Image'
         11        BOOL_NOT                                         ~9      ~8
         12      > JMPZ                                                     ~9, ->18
         13    >   FETCH_DIM_R                                      ~11     !0, 'Chain'
         14        FETCH_DIM_R                                      ~12     ~11, 'Image'
         15        ASSIGN_DIM                                               !0, 'Image'
         16        OP_DATA                                                  ~12
         17      > JMP                                                      ->26
         18    >   FETCH_DIM_IS                                     ~13     !0, 'Block'
         19        ISSET_ISEMPTY_DIM_OBJ                         1  ~14     ~13, 'Image'
         20        BOOL_NOT                                         ~15     ~14
         21      > JMPZ                                                     ~15, ->26
         22    >   FETCH_DIM_R                                      ~17     !0, 'Block'
         23        FETCH_DIM_R                                      ~18     ~17, 'Image'
         24        ASSIGN_DIM                                               !0, 'Image'
         25        OP_DATA                                                  ~18
         26    >   INIT_FCALL                                               'print_r'
         27        FETCH_DIM_R                                      ~19     !0, 'Image'
         28        SEND_VAL                                                 ~19
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.82 ms | 1396 KiB | 15 Q