3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( "0" => "", "address_country" => "", "1" => "2011-11-29 14:49:10", "createdtime" => "2011-11-29 14:49:10" ); $c = array_values($a); for($i = 0; $i < count($c); $i++){ if(count($c) > $i) if(array_search($a[$i+1],$c) == "address_country") echo "found"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 7
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 19
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 19
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 7
Branch analysis from position: 23
Branch analysis from position: 7
Branch analysis from position: 19
Branch analysis from position: 19
filename:       /in/icA49
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $c, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'array_values'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    9     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->20
   10     7    >   COUNT                                            ~7      !1
          8        IS_SMALLER                                               !2, ~7
          9      > JMPZ                                                     ~8, ->19
   11    10    >   INIT_FCALL                                               'array_search'
         11        ADD                                              ~9      !2, 1
         12        FETCH_DIM_R                                      ~10     !0, ~9
         13        SEND_VAL                                                 ~10
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $11     
         16        IS_EQUAL                                                 $11, 'address_country'
         17      > JMPZ                                                     ~12, ->19
   12    18    >   ECHO                                                     'found'
    9    19    >   PRE_INC                                                  !2
         20    >   COUNT                                            ~14     !1
         21        IS_SMALLER                                               !2, ~14
         22      > JMPNZ                                                    ~15, ->7
   13    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.21 ms | 1395 KiB | 17 Q