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 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nF1CZ
function name:  (null)
number of ops:  20
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                                               'print_r'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    5     8        INIT_FCALL                                               'preg_match'
          9        ROPE_INIT                                     3  ~7      '%2F'
         10        ROPE_ADD                                      1  ~7      ~7, !0
         11        ROPE_END                                      2  ~6      ~7, '%2Fi'
         12        SEND_VAL                                                 ~6
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $9      
         15      > JMPZ                                                     $9, ->18
    6    16    >   ECHO                                                     'There+are+not+allowed+symbols+in+the+text'
         17      > JMP                                                      ->19
    8    18    >   ECHO                                                     'There+are+allowed+symbols+in+the+text'
    9    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.83 ms | 1395 KiB | 19 Q