3v4l.org

run code in 300+ 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 = 16, Position 2 = 23
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/P3XEJ
function name:  (null)
number of ops:  24
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        INIT_FCALL                                               'implode'
          4        SEND_VAL                                                 '%7C'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $6      
          7        CONCAT                                           ~7      '%2F%28', $6
          8        CONCAT                                           ~8      ~7, '%29%2Fi'
          9        SEND_VAL                                                 ~8
         10        SEND_VAR                                                 !1
         11        SEND_REF                                                 !3
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !2, $9
    8    14        IS_SMALLER                                               0, !2
         15      > JMPZ                                                     ~11, ->23
    9    16    >   INIT_FCALL                                               'implode'
         17        SEND_VAL                                                 '%2C+'
         18        FETCH_DIM_R                                      ~12     !3, 0
         19        SEND_VAL                                                 ~12
         20        DO_ICALL                                         $13     
         21        CONCAT                                           ~14     'B%C3%B6se+W%C3%B6rter%3A+', $13
         22        ECHO                                                     ~14
   10    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.31 ms | 1400 KiB | 17 Q