3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = " text1 .id.123 .id.4576 text4 .id.56778 text 5 .id.76728"; preg_match_all('~\.id\.\K\d+~', $string, $m); echo implode(',', $m[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EDW2V
function name:  (null)
number of ops:  10
compiled vars:  !0 = $string, !1 = $m
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '+text1+.id.123+.id.4576+text4+.id.56778+text+5+.id.76728'
    4     1        INIT_FCALL                                                   'preg_match_all'
          2        SEND_VAL                                                     '%7E%5C.id%5C.%5CK%5Cd%2B%7E'
          3        SEND_VAR                                                     !0
          4        SEND_REF                                                     !1
          5        DO_ICALL                                                     
    6     6        FETCH_DIM_R                                          ~4      !1, 0
          7        FRAMELESS_ICALL_2                implode             ~5      '%2C', ~4
          8        ECHO                                                         ~5
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.79 ms | 1853 KiB | 14 Q