3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_unique_global_values = array ( 'sku' => array ( ), 'global' => array ( ), 'adasdad' => array ( ), ); $columnName = 'adasdad'; $column = array( 'value_source' => array ( 0 => '', ), 'value_save' => array ( ), 'id_catalog_attribute' => '210', 'mandatory_import' => false, 'mandatory' => false, 'unique_value' => 'global', 'value_options' => array ( 0 => array ( 'name' => '1', 'name_en' => '1', 'position' => '0', 'is_default' => '0', 'id' => '1', ), ), ); if (!empty($_unique_global_values[$columnName]) && isset($_unique_global_values[$columnName][$column['value_source']])) { echo 'gut'; } else { echo 'schlecht'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/AAL35
function name:  (null)
number of ops:  15
compiled vars:  !0 = $_unique_global_values, !1 = $columnName, !2 = $column
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   15     1        ASSIGN                                                   !1, 'adasdad'
   17     2        ASSIGN                                                   !2, <array>
   43     3        ISSET_ISEMPTY_DIM_OBJ                         1  ~6      !0, !1
          4        BOOL_NOT                                         ~7      ~6
          5      > JMPZ_EX                                          ~7      ~7, ->10
          6    >   FETCH_DIM_R                                      ~9      !2, 'value_source'
          7        FETCH_DIM_IS                                     ~8      !0, !1
          8        ISSET_ISEMPTY_DIM_OBJ                         0  ~10     ~8, ~9
          9        BOOL                                             ~7      ~10
         10    > > JMPZ                                                     ~7, ->13
   44    11    >   ECHO                                                     'gut'
         12      > JMP                                                      ->14
   46    13    >   ECHO                                                     'schlecht'
   47    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.7 ms | 1393 KiB | 13 Q