3v4l.org

run code in 300+ PHP versions simultaneously
<? if(preg_match('[0-9a-zA-Z]', 'bob')) { echo preg_match('[0-9a-zA-Z]', 'bob'); } echo "<br /><hr />"; if(preg_match('~[0-9a-zA-Z]~', 'bob')) { echo preg_match('[0-9a-zA-Z]', 'bob'); } echo "<br /><hr />"; if(preg_match('~[0-9a-zA-Z]+~', 'bob')) { echo preg_match('[0-9a-zA-Z]', 'bob'); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 32
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
Branch analysis from position: 21
Branch analysis from position: 10
filename:       /in/666m4
function name:  (null)
number of ops:  33
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%5B0-9a-zA-Z%5D'
          2        SEND_VAL                                                 'bob'
          3        DO_ICALL                                         $0      
          4      > JMPZ                                                     $0, ->10
    4     5    >   INIT_FCALL                                               'preg_match'
          6        SEND_VAL                                                 '%5B0-9a-zA-Z%5D'
          7        SEND_VAL                                                 'bob'
          8        DO_ICALL                                         $1      
          9        ECHO                                                     $1
    5    10    >   ECHO                                                     '%3Cbr+%2F%3E%3Chr+%2F%3E'
    7    11        INIT_FCALL                                               'preg_match'
         12        SEND_VAL                                                 '%7E%5B0-9a-zA-Z%5D%7E'
         13        SEND_VAL                                                 'bob'
         14        DO_ICALL                                         $2      
         15      > JMPZ                                                     $2, ->21
    8    16    >   INIT_FCALL                                               'preg_match'
         17        SEND_VAL                                                 '%5B0-9a-zA-Z%5D'
         18        SEND_VAL                                                 'bob'
         19        DO_ICALL                                         $3      
         20        ECHO                                                     $3
    9    21    >   ECHO                                                     '%3Cbr+%2F%3E%3Chr+%2F%3E'
   11    22        INIT_FCALL                                               'preg_match'
         23        SEND_VAL                                                 '%7E%5B0-9a-zA-Z%5D%2B%7E'
         24        SEND_VAL                                                 'bob'
         25        DO_ICALL                                         $4      
         26      > JMPZ                                                     $4, ->32
   12    27    >   INIT_FCALL                                               'preg_match'
         28        SEND_VAL                                                 '%5B0-9a-zA-Z%5D'
         29        SEND_VAL                                                 'bob'
         30        DO_ICALL                                         $5      
         31        ECHO                                                     $5
   14    32    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.89 ms | 1396 KiB | 15 Q