3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.75 ms | 1395 KiB | 19 Q