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', $test['landing_page'])) echo "yes"; else echo "no";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZnBaF
function name:  (null)
number of ops:  16
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        FETCH_DIM_R                                      ~4      !0, 'landing_page'
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                         $5      
         11      > JMPZ                                                     $5, ->14
   11    12    >   ECHO                                                     'yes'
         13      > JMP                                                      ->15
   13    14    >   ECHO                                                     'no'
         15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.83 ms | 1399 KiB | 17 Q