3v4l.org

run code in 300+ PHP versions simultaneously
<?php preg_match("(\a-zA-Z0-9_)?/", "dsgfcdfsg\-sf",$matches); print_r($matches); echo "\n"; preg_match("/(\w*\-)/", "dsgfcdfsg-sf",$matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kCqS1
function name:  (null)
number of ops:  18
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%28%5Ca-zA-Z0-9_%29%3F%2F'
          2        SEND_VAL                                                 'dsgfcdfsg%5C-sf'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                                 
    3     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    4     8        ECHO                                                     '%0A'
    5     9        INIT_FCALL                                               'preg_match'
         10        SEND_VAL                                                 '%2F%28%5Cw%2A%5C-%29%2F'
         11        SEND_VAL                                                 'dsgfcdfsg-sf'
         12        SEND_REF                                                 !0
         13        DO_ICALL                                                 
    6    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.64 ms | 1386 KiB | 17 Q