3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'renewal'; if ( ! preg_match("/^[".preg_quote('a-z 0-9~%.:_-')."]+$/i", $str)){ echo "Unallowed!!!!"; }else{ echo "Looks fine"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c8Mq4
function name:  (null)
number of ops:  16
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'renewal'
    3     1        INIT_FCALL                                               'preg_match'
          2        INIT_FCALL                                               'preg_quote'
          3        SEND_VAL                                                 'a-z+0-9%7E%25.%3A_-'
          4        DO_ICALL                                         $2      
          5        CONCAT                                           ~3      '%2F%5E%5B', $2
          6        CONCAT                                           ~4      ~3, '%5D%2B%24%2Fi'
          7        SEND_VAL                                                 ~4
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $5      
         10        BOOL_NOT                                         ~6      $5
         11      > JMPZ                                                     ~6, ->14
    4    12    >   ECHO                                                     'Unallowed%21%21%21%21'
         13      > JMP                                                      ->15
    6    14    >   ECHO                                                     'Looks+fine'
    7    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.07 ms | 1394 KiB | 17 Q