3v4l.org

run code in 500+ PHP versions simultaneously
<?php preg_match("/(\w+)?/", "",$matches); print_r($matches); echo "\n"; preg_match("/(\w*)/", "",$matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EEoJZ
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                                                     '%2F%28%5Cw%2B%29%3F%2F'
          2        SEND_VAL                                                     ''
          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%29%2F'
         11        SEND_VAL                                                     ''
         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.5.0


preferences:
201.38 ms | 3064 KiB | 15 Q