3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.15 ms | 1399 KiB | 15 Q