3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.19 ms | 1395 KiB | 21 Q