3v4l.org

run code in 300+ PHP versions simultaneously
<?php $not_allowed_symbols = '[^a-z0-9:;,!\'\s*.?()"-]'; $letter = nl2br("aaa\nbbb\nccc"); if(preg_match("/$not_allowed_symbols/i", $letter)){ echo "There are not allowed symbols in the text"; }else{ echo "There are allowed symbols in the text"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6d7iL
function name:  (null)
number of ops:  17
compiled vars:  !0 = $not_allowed_symbols, !1 = $letter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%5B%5Ea-z0-9%3A%3B%2C%21%27%5Cs%2A.%3F%28%29%22-%5D'
    3     1        INIT_FCALL                                               'nl2br'
          2        SEND_VAL                                                 'aaa%0Abbb%0Accc'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    4     5        INIT_FCALL                                               'preg_match'
          6        ROPE_INIT                                     3  ~6      '%2F'
          7        ROPE_ADD                                      1  ~6      ~6, !0
          8        ROPE_END                                      2  ~5      ~6, '%2Fi'
          9        SEND_VAL                                                 ~5
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $8      
         12      > JMPZ                                                     $8, ->15
    5    13    >   ECHO                                                     'There+are+not+allowed+symbols+in+the+text'
         14      > JMP                                                      ->16
    7    15    >   ECHO                                                     'There+are+allowed+symbols+in+the+text'
    8    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.21 ms | 1395 KiB | 17 Q