3v4l.org

run code in 300+ PHP versions simultaneously
<?php //start by fetching the terms for the product_type taxonomy $terms = get_terms( 'stores', array( 'hide_empty' => 0 ) ); foreach( $terms as $term ) { if (in_array('UK', get_field('store_country', 'stores_'.$term->term_id))) { continue; echo '<div>' . $term->name . '</div>'; } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 24
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 24
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 23
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/dWrPq
function name:  (null)
number of ops:  26
compiled vars:  !0 = $terms, !1 = $term
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'get_terms'
          1        SEND_VAL_EX                                              'stores'
    4     2        SEND_VAL_EX                                              <array>
          3        DO_FCALL                                      0  $2      
    3     4        ASSIGN                                                   !0, $2
    7     5      > FE_RESET_R                                       $4      !0, ->24
          6    > > FE_FETCH_R                                               $4, !1, ->24
    9     7    >   INIT_FCALL                                               'in_array'
          8        SEND_VAL                                                 'UK'
          9        INIT_FCALL_BY_NAME                                       'get_field'
         10        SEND_VAL_EX                                              'store_country'
         11        FETCH_OBJ_R                                      ~5      !1, 'term_id'
         12        CONCAT                                           ~6      'stores_', ~5
         13        SEND_VAL_EX                                              ~6
         14        DO_FCALL                                      0  $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                         $8      
         17      > JMPZ                                                     $8, ->23
   11    18    > > JMP                                                      ->6
   13    19*       FETCH_OBJ_R                                      ~9      !1, 'name'
         20*       CONCAT                                           ~10     '%3Cdiv%3E', ~9
         21*       CONCAT                                           ~11     ~10, '%3C%2Fdiv%3E'
         22*       ECHO                                                     ~11
    7    23    > > JMP                                                      ->6
         24    >   FE_FREE                                                  $4
   17    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.24 ms | 1396 KiB | 15 Q