3v4l.org

run code in 300+ PHP versions simultaneously
<?php $kw = " asdsdfsdf @ as "; $pattern = '/[' . preg_quote(',!@%^*()={};~`<>?\|', '/') . ']/u'; var_dump($pattern); var_dump(var_export($pattern, true)); var_dump(preg_match($pattern, $kw));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/odUuD
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+%40+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', $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 8.0.0


preferences:
164.4 ms | 1395 KiB | 21 Q