3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '-._~%:/?#[]@!$&\'()*+,;='; $str = preg_quote( $str , '/'); $str = "/[" . $str . "]/"; echo $str; $value = "@"; //$value = "@$$$$"; //$value = "++++;"; //$value = ":::"; if (preg_match($str,$value) == 1) { echo "不正な文字です"; }else{ echo "有効な文字です"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kABdU
function name:  (null)
number of ops:  21
compiled vars:  !0 = $str, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '-._%7E%25%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D'
    4     1        INIT_FCALL                                               'preg_quote'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%2F'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !0, $3
    5     6        CONCAT                                           ~5      '%2F%5B', !0
          7        CONCAT                                           ~6      ~5, '%5D%2F'
          8        ASSIGN                                                   !0, ~6
    6     9        ECHO                                                     !0
    8    10        ASSIGN                                                   !1, '%40'
   13    11        INIT_FCALL                                               'preg_match'
         12        SEND_VAR                                                 !0
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $9      
         15        IS_EQUAL                                                 $9, 1
         16      > JMPZ                                                     ~10, ->19
   14    17    >   ECHO                                                     '%E4%B8%8D%E6%AD%A3%E3%81%AA%E6%96%87%E5%AD%97%E3%81%A7%E3%81%99'
         18      > JMP                                                      ->20
   16    19    >   ECHO                                                     '%E6%9C%89%E5%8A%B9%E3%81%AA%E6%96%87%E5%AD%97%E3%81%A7%E3%81%99'
   17    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.37 ms | 1395 KiB | 17 Q