3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_match('#^\w$#', 'Test',$regs)); var_dump(preg_match('#^\w$#', 'T',$regs)); var_dump(preg_match('#^\w+$#', 'Test',$regs));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KaU3n
function name:  (null)
number of ops:  25
compiled vars:  !0 = $regs
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%23%5E%5Cw%24%23'
          3        SEND_VAL                                                 'Test'
          4        SEND_REF                                                 !0
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                                 
    4     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'preg_match'
         10        SEND_VAL                                                 '%23%5E%5Cw%24%23'
         11        SEND_VAL                                                 'T'
         12        SEND_REF                                                 !0
         13        DO_ICALL                                         $3      
         14        SEND_VAR                                                 $3
         15        DO_ICALL                                                 
    5    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'preg_match'
         18        SEND_VAL                                                 '%23%5E%5Cw%2B%24%23'
         19        SEND_VAL                                                 'Test'
         20        SEND_REF                                                 !0
         21        DO_ICALL                                         $5      
         22        SEND_VAR                                                 $5
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.99 ms | 1395 KiB | 17 Q