3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (preg_match("/_/", "6654_2", $matches, PREG_OFFSET_CAPTURE)) { echo $matches[0]+""+$matches[1]; } else { echo "A match was not found."; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hfMbo
function name:  (null)
number of ops:  15
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%2F_%2F'
          2        SEND_VAL                                                 '6654_2'
          3        SEND_REF                                                 !0
          4        SEND_VAL                                                 256
          5        DO_ICALL                                         $1      
          6      > JMPZ                                                     $1, ->13
    4     7    >   FETCH_DIM_R                                      ~2      !0, 0
          8        ADD                                              ~3      ~2, ''
          9        FETCH_DIM_R                                      ~4      !0, 1
         10        ADD                                              ~5      ~3, ~4
         11        ECHO                                                     ~5
         12      > JMP                                                      ->14
    6    13    >   ECHO                                                     'A+match+was+not+found.'
    7    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.79 ms | 1394 KiB | 15 Q