3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array1=['289','290','297']; $array2=['289','290','297']; $num=0; while ($num<count($array1)) { echo print_r($array1,true); echo '<br>'; echo print_r($array2,true); $t=$array1[$num]; echo '<br>'; echo $t; echo '<br>'; if (array_search($t,$array2,TRUE)) { echo 'Isto deu match: '.$array1[$num]; } echo '<br>'; $num++; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 4
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 29
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 4
Branch analysis from position: 34
Branch analysis from position: 4
Branch analysis from position: 29
filename:       /in/r5tN9
function name:  (null)
number of ops:  35
compiled vars:  !0 = $array1, !1 = $array2, !2 = $num, !3 = $t
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                       !0, <array>
    6     1        ASSIGN                                                       !1, <array>
    7     2        ASSIGN                                                       !2, 0
    8     3      > JMP                                                          ->31
   10     4    >   INIT_FCALL                                                   'print_r'
          5        SEND_VAR                                                     !0
          6        SEND_VAL                                                     <true>
          7        DO_ICALL                                             $7      
          8        ECHO                                                         $7
   11     9        ECHO                                                         '%3Cbr%3E'
   12    10        INIT_FCALL                                                   'print_r'
         11        SEND_VAR                                                     !1
         12        SEND_VAL                                                     <true>
         13        DO_ICALL                                             $8      
         14        ECHO                                                         $8
   13    15        FETCH_DIM_R                                          ~9      !0, !2
         16        ASSIGN                                                       !3, ~9
   14    17        ECHO                                                         '%3Cbr%3E'
   15    18        ECHO                                                         !3
   16    19        ECHO                                                         '%3Cbr%3E'
   17    20        INIT_FCALL                                                   'array_search'
         21        SEND_VAR                                                     !3
         22        SEND_VAR                                                     !1
         23        SEND_VAL                                                     <true>
         24        DO_ICALL                                             $11     
         25      > JMPZ                                                         $11, ->29
   19    26    >   FETCH_DIM_R                                          ~12     !0, !2
         27        CONCAT                                               ~13     'Isto+deu+match%3A+', ~12
         28        ECHO                                                         ~13
   21    29    >   ECHO                                                         '%3Cbr%3E'
   22    30        PRE_INC                                                      !2
    8    31    >   COUNT                                                ~15     !0
         32        IS_SMALLER                                                   !2, ~15
         33      > JMPNZ                                                        ~16, ->4
   23    34    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.09 ms | 480 KiB | 9 Q