3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test['landing_page'] = array( 'SAGE' => array( 'logo' => '', ), ); print_r($test['landing_page']); if(in_array('SAGE', array_keys($test['landing_page']))) echo "yes"; else echo "no";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lp7mM
function name:  (null)
number of ops:  19
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'landing_page'
    4     1        OP_DATA                                                  <array>
    8     2        INIT_FCALL                                               'print_r'
          3        FETCH_DIM_R                                      ~2      !0, 'landing_page'
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
   10     6        INIT_FCALL                                               'in_array'
          7        SEND_VAL                                                 'SAGE'
          8        INIT_FCALL                                               'array_keys'
          9        FETCH_DIM_R                                      ~4      !0, 'landing_page'
         10        SEND_VAL                                                 ~4
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                         $6      
         14      > JMPZ                                                     $6, ->17
   11    15    >   ECHO                                                     'yes'
         16      > JMP                                                      ->18
   13    17    >   ECHO                                                     'no'
         18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.42 ms | 1395 KiB | 19 Q