3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = 'Re: Response to your ticket [TicketID:159]'; $matches = []; preg_match('.*\[TicketID:(\d)+\]', $test, $matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YjqB3
function name:  (null)
number of ops:  11
compiled vars:  !0 = $test, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Re%3A+Response+to+your+ticket+%5BTicketID%3A159%5D'
    3     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '.%2A%5C%5BTicketID%3A%28%5Cd%29%2B%5C%5D'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !1
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.58 ms | 1385 KiB | 17 Q