3v4l.org

run code in 300+ PHP versions simultaneously
<?php $skill = array(".net","software framework","microsoft"); $text = ".NET Framework is a software framework developed by Microsoft"; foreach ($skill as $skills) { preg_match_all("~(?<!\w)" . preg_quote($skills) . "\b~i", $text, $matchWords); foreach ($matchWords[0] as $matchWord) { echo "<b>MatchWord:</b> " . $matchWord. "<br>"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 23
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 23
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 21
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 21
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/J8mBO
function name:  (null)
number of ops:  25
compiled vars:  !0 = $skill, !1 = $text, !2 = $skills, !3 = $matchWords, !4 = $matchWord
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, '.NET+Framework+is+a+software+framework+developed+by+Microsoft'
    5     2      > FE_RESET_R                                       $7      !0, ->23
          3    > > FE_FETCH_R                                               $7, !2, ->23
    6     4    >   INIT_FCALL                                               'preg_match_all'
          5        INIT_FCALL                                               'preg_quote'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $8      
          8        CONCAT                                           ~9      '%7E%28%3F%3C%21%5Cw%29', $8
          9        CONCAT                                           ~10     ~9, '%5Cb%7Ei'
         10        SEND_VAL                                                 ~10
         11        SEND_VAR                                                 !1
         12        SEND_REF                                                 !3
         13        DO_ICALL                                                 
    7    14        FETCH_DIM_R                                      ~12     !3, 0
         15      > FE_RESET_R                                       $13     ~12, ->21
         16    > > FE_FETCH_R                                               $13, !4, ->21
    8    17    >   CONCAT                                           ~14     '%3Cb%3EMatchWord%3A%3C%2Fb%3E+', !4
         18        CONCAT                                           ~15     ~14, '%3Cbr%3E'
         19        ECHO                                                     ~15
    7    20      > JMP                                                      ->16
         21    >   FE_FREE                                                  $13
    5    22      > JMP                                                      ->3
         23    >   FE_FREE                                                  $7
   10    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.5 ms | 1012 KiB | 15 Q