3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $kw = " asdsdfsdf \xFF as "; $pattern = '/[[:cntrl:]' . preg_quote(',!@%^*()={};~`<>?\|', '/') . ']/u'; var_dump($pattern); var_dump(var_export($pattern, true)); var_dump(preg_match($pattern, $kw));
based on odUuD
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7JgSK
function name:  (null)
number of ops:  26
compiled vars:  !0 = $kw, !1 = $pattern
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN                                                   !0, '+asdsdfsdf+%FF+as+'
   4     1        INIT_FCALL                                               'preg_quote'
         2        SEND_VAL                                                 '%2C%21%40%25%5E%2A%28%29%3D%7B%7D%3B%7E%60%3C%3E%3F%5C%7C'
         3        SEND_VAL                                                 '%2F'
         4        DO_ICALL                                         $3      
         5        CONCAT                                           ~4      '%2F%5B%5B%3Acntrl%3A%5D', $3
         6        CONCAT                                           ~5      ~4, '%5D%2Fu'
         7        ASSIGN                                                   !1, ~5
   5     8        INIT_FCALL                                               'var_dump'
         9        SEND_VAR                                                 !1
        10        DO_ICALL                                                 
   6    11        INIT_FCALL                                               'var_dump'
        12        INIT_FCALL                                               'var_export'
        13        SEND_VAR                                                 !1
        14        SEND_VAL                                                 <true>
        15        DO_ICALL                                         $8      
        16        SEND_VAR                                                 $8
        17        DO_ICALL                                                 
   8    18        INIT_FCALL                                               'var_dump'
        19        INIT_FCALL                                               'preg_match'
        20        SEND_VAR                                                 !1
        21        SEND_VAR                                                 !0
        22        DO_ICALL                                         $10     
        23        SEND_VAR                                                 $10
        24        DO_ICALL                                                 
        25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0