3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = 'texc'; $str2 = 'texc'; $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; } } } //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 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 5
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 9
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 5
Branch analysis from position: 22
Branch analysis from position: 5
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 9
Branch analysis from position: 18
Branch analysis from position: 9
Branch analysis from position: 14
filename:       /in/MlS08
function name:  (null)
number of ops:  30
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, 'texc'
    4     1        ASSIGN                                                   !1, 'texc'
    5     2        ASSIGN                                                   !2, <array>
    7     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->19
    8     5    >   FETCH_DIM_R                                      ~10     !0, !3
          6        ASSIGN                                                   !4, ~10
    9     7        ASSIGN                                                   !5, 0
          8      > JMP                                                      ->15
   10     9    >   FETCH_DIM_R                                      ~13     !1, !5
         10        IS_EQUAL                                                 !4, ~13
         11      > JMPZ                                                     ~14, ->14
   11    12    >   ASSIGN_DIM                                               !2
         13        OP_DATA                                                  !4
    9    14    >   PRE_INC                                                  !5
         15    >   STRLEN                                           ~17     !1
         16        IS_SMALLER                                               !5, ~17
         17      > JMPNZ                                                    ~18, ->9
    7    18    >   PRE_INC                                                  !3
         19    >   STRLEN                                           ~20     !0
         20        IS_SMALLER                                               !3, ~20
         21      > JMPNZ                                                    ~21, ->5
   20    22    >   COUNT                                            ~22     !2
         23        STRLEN                                           ~23     !0
         24        IS_EQUAL                                                 ~22, ~23
         25      > JMPZ                                                     ~24, ->28
   21    26    >   ECHO                                                     'Bingo%21'
   20    27      > JMP                                                      ->29
   23    28    >   ECHO                                                     'Nope+%3A%28'
   24    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.25 ms | 996 KiB | 13 Q