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($letters)) print "$w<br/>".array_count_values($leltters)."==="; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 30
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 30
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 = 21, Position 2 = 29
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 29
Branch analysis from position: 15
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
filename:       /in/7kka3
function name:  (null)
number of ops:  32
compiled vars:  !0 = $words, !1 = $letters, !2 = $w, !3 = $n, !4 = $l, !5 = $leltters
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                                       $8      !0, ->30
          3    > > FE_FETCH_R                                               $8, !2, ->30
    6     4    >   ASSIGN                                                   !3, 0
    7     5      > FE_RESET_R                                       $10     !1, ->15
          6    > > FE_FETCH_R                                               $10, !4, ->15
    8     7    >   INIT_FCALL                                               'strpos'
          8        SEND_VAR                                                 !2
          9        SEND_VAR                                                 !4
         10        DO_ICALL                                         $11     
         11        TYPE_CHECK                                  1018          $11
         12      > JMPZ                                                     ~12, ->14
         13    >   PRE_INC                                                  !3
    7    14    > > JMP                                                      ->6
         15    >   FE_FREE                                                  $10
   10    16        INIT_FCALL                                               'array_count_values'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $14     
         19        IS_SMALLER_OR_EQUAL                                      $14, !3
         20      > JMPZ                                                     ~15, ->29
         21    >   NOP                                                      
         22        FAST_CONCAT                                      ~16     !2, '%3Cbr%2F%3E'
         23        INIT_FCALL                                               'array_count_values'
         24        SEND_VAR                                                 !5
         25        DO_ICALL                                         $17     
         26        CONCAT                                           ~18     ~16, $17
         27        CONCAT                                           ~19     ~18, '%3D%3D%3D'
         28        ECHO                                                     ~19
    4    29    > > JMP                                                      ->3
         30    >   FE_FREE                                                  $8
   11    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.56 ms | 1396 KiB | 17 Q