3v4l.org

run code in 300+ PHP versions simultaneously
<?php $not_allowed_symbols = '[^a-z0-9:;,!\'\s*.?()"-]'; //$letter = nl2br("aaa\nbbb\nccc"); //print_r($letter); 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 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jV1h1
function name:  (null)
number of ops:  13
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'
    5     1        INIT_FCALL                                               'preg_match'
          2        ROPE_INIT                                     3  ~4      '%2F'
          3        ROPE_ADD                                      1  ~4      ~4, !0
          4        ROPE_END                                      2  ~3      ~4, '%2Fi'
          5        SEND_VAL                                                 ~3
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $6      
          8      > JMPZ                                                     $6, ->11
    6     9    >   ECHO                                                     'There+are+not+allowed+symbols+in+the+text'
         10      > JMP                                                      ->12
    8    11    >   ECHO                                                     'There+are+allowed+symbols+in+the+text'
    9    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.03 ms | 1394 KiB | 15 Q