3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.31 ms | 1399 KiB | 21 Q