3v4l.org

run code in 300+ PHP versions simultaneously
<?php $words = array('systematic', 'سلام','gear','synthesis','mysterious'); $letters=array('s','m', 'e'); foreach ($words as $w) { //print "lets check word $w<br>"; $n=0; foreach ($letters as $l) { if (strpos($w, $l)!==false) $n++; } if ($n>= array_count_values($l,'utf8')) print "$w<br/>".array_count_values($l,'utf8')."==="; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 32
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 32
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 14
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 31
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 31
Branch analysis from position: 15
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
filename:       /in/Jfhdf
function name:  (null)
number of ops:  34
compiled vars:  !0 = $words, !1 = $letters, !2 = $w, !3 = $n, !4 = $l
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2      > FE_RESET_R                                       $7      !0, ->32
          3    > > FE_FETCH_R                                               $7, !2, ->32
    6     4    >   ASSIGN                                                   !3, 0
    7     5      > FE_RESET_R                                       $9      !1, ->15
          6    > > FE_FETCH_R                                               $9, !4, ->15
    8     7    >   INIT_FCALL                                               'strpos'
          8        SEND_VAR                                                 !2
          9        SEND_VAR                                                 !4
         10        DO_ICALL                                         $10     
         11        TYPE_CHECK                                  1018          $10
         12      > JMPZ                                                     ~11, ->14
         13    >   PRE_INC                                                  !3
    7    14    > > JMP                                                      ->6
         15    >   FE_FREE                                                  $9
   10    16        INIT_FCALL                                               'array_count_values'
         17        SEND_VAR                                                 !4
         18        SEND_VAL                                                 'utf8'
         19        DO_ICALL                                         $13     
         20        IS_SMALLER_OR_EQUAL                                      $13, !3
         21      > JMPZ                                                     ~14, ->31
         22    >   NOP                                                      
         23        FAST_CONCAT                                      ~15     !2, '%3Cbr%2F%3E'
         24        INIT_FCALL                                               'array_count_values'
         25        SEND_VAR                                                 !4
         26        SEND_VAL                                                 'utf8'
         27        DO_ICALL                                         $16     
         28        CONCAT                                           ~17     ~15, $16
         29        CONCAT                                           ~18     ~17, '%3D%3D%3D'
         30        ECHO                                                     ~18
    4    31    > > JMP                                                      ->3
         32    >   FE_FREE                                                  $7
   11    33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.16 ms | 1400 KiB | 17 Q