3v4l.org

run code in 500+ PHP versions simultaneously
<?php $blacklist = ['fu', 'bar']; $input = 'benutzer Eingabe fu bar'; $count = preg_match_all('/(' . implode('|', $blacklist) . ')/i', $input, $matches); If ($count > 0) { echo 'Böse Wörter: ' . implode(', ', $matches[0]); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/P3XEJ
function name:  (null)
number of ops:  18
compiled vars:  !0 = $blacklist, !1 = $input, !2 = $count, !3 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        ASSIGN                                                       !1, 'benutzer+Eingabe+fu+bar'
    6     2        INIT_FCALL                                                   'preg_match_all'
          3        FRAMELESS_ICALL_2                implode             ~6      '%7C', !0
          4        CONCAT                                               ~7      '%2F%28', ~6
          5        CONCAT                                               ~8      ~7, '%29%2Fi'
          6        SEND_VAL                                                     ~8
          7        SEND_VAR                                                     !1
          8        SEND_REF                                                     !3
          9        DO_ICALL                                             $9      
         10        ASSIGN                                                       !2, $9
    8    11        IS_SMALLER                                                   0, !2
         12      > JMPZ                                                         ~11, ->17
    9    13    >   FETCH_DIM_R                                          ~12     !3, 0
         14        FRAMELESS_ICALL_2                implode             ~13     '%2C+', ~12
         15        CONCAT                                               ~14     'B%C3%B6se+W%C3%B6rter%3A+', ~13
         16        ECHO                                                         ~14
   10    17    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.92 ms | 1977 KiB | 14 Q