3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = 'text'; $str2 = 'text'; $ch_check = []; for($i = 0; $i <strlen($str1); $i++){ $ch = $str1[$i]; for($j = 0; $j <strlen($str2); $j++){ if($ch == $str2[$j]){ $ch_check[] = $ch; break; } } } //echo "<pre>"; //var_dump($ch_check); //echo "</pre>"; if(count($ch_check) == strlen($str1)){ echo "Bingo!"; }else{ echo "Nope :("; }
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 = 5
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 9
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 5
Branch analysis from position: 23
Branch analysis from position: 5
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 9
Branch analysis from position: 19
Branch analysis from position: 9
filename:       /in/vJpNC
function name:  (null)
number of ops:  31
compiled vars:  !0 = $str1, !1 = $str2, !2 = $ch_check, !3 = $i, !4 = $ch, !5 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'text'
    4     1        ASSIGN                                                   !1, 'text'
    5     2        ASSIGN                                                   !2, <array>
    7     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->20
    8     5    >   FETCH_DIM_R                                      ~10     !0, !3
          6        ASSIGN                                                   !4, ~10
    9     7        ASSIGN                                                   !5, 0
          8      > JMP                                                      ->16
   10     9    >   FETCH_DIM_R                                      ~13     !1, !5
         10        IS_EQUAL                                                 !4, ~13
         11      > JMPZ                                                     ~14, ->15
   11    12    >   ASSIGN_DIM                                               !2
         13        OP_DATA                                                  !4
   12    14      > JMP                                                      ->19
    9    15    >   PRE_INC                                                  !5
         16    >   STRLEN                                           ~17     !1
         17        IS_SMALLER                                               !5, ~17
         18      > JMPNZ                                                    ~18, ->9
    7    19    >   PRE_INC                                                  !3
         20    >   STRLEN                                           ~20     !0
         21        IS_SMALLER                                               !3, ~20
         22      > JMPNZ                                                    ~21, ->5
   21    23    >   COUNT                                            ~22     !2
         24        STRLEN                                           ~23     !0
         25        IS_EQUAL                                                 ~22, ~23
         26      > JMPZ                                                     ~24, ->29
   22    27    >   ECHO                                                     'Bingo%21'
   21    28      > JMP                                                      ->30
   24    29    >   ECHO                                                     'Nope+%3A%28'
   25    30    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.57 ms | 1000 KiB | 13 Q