3v4l.org

run code in 500+ PHP versions simultaneously
<?php $subject = "New tour subscription [ALKJ-102] [ID:12345]"; preg_match("/(?<=\[ID:)\d+/", $subject, $mat); echo $mat[0];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rDjZc
function name:  (null)
number of ops:  9
compiled vars:  !0 = $subject, !1 = $mat
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'New+tour+subscription+%5BALKJ-102%5D+%5BID%3A12345%5D'
    3     1        INIT_FCALL                                                   'preg_match'
          2        SEND_VAL                                                     '%2F%28%3F%3C%3D%5C%5BID%3A%29%5Cd%2B%2F'
          3        SEND_VAR                                                     !0
          4        SEND_REF                                                     !1
          5        DO_ICALL                                                     
    4     6        FETCH_DIM_R                                          ~4      !1, 0
          7        ECHO                                                         ~4
          8      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.79 ms | 2060 KiB | 14 Q