3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vals = array( "[[aa]]", "/\\/\\", "&", "$^", ); foreach ($vals as $v) { var_dump( preg_match( '/^[-+=_.:;!?@#\\$%\\^&*a-z0-9\\\\\\/\\(\\)\\[\\]\\{\\}\'"]$/i', $v ) ); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 11
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/KQ8fU
function name:  (null)
number of ops:  13
compiled vars:  !0 = $vals, !1 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1      > FE_RESET_R                                       $3      !0, ->11
          2    > > FE_FETCH_R                                               $3, !1, ->11
    9     3    >   INIT_FCALL                                               'var_dump'
   10     4        INIT_FCALL                                               'preg_match'
   11     5        SEND_VAL                                                 '%2F%5E%5B-%2B%3D_.%3A%3B%21%3F%40%23%5C%24%25%5C%5E%26%2Aa-z0-9%5C%5C%5C%2F%5C%28%5C%29%5C%5B%5C%5D%5C%7B%5C%7D%27%22%5D%24%2Fi'
   12     6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
    8    10      > JMP                                                      ->2
         11    >   FE_FREE                                                  $3
   15    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.97 ms | 1399 KiB | 17 Q