3v4l.org

run code in 500+ PHP versions simultaneously
<?php $s = "8.40083897*\nS903040058061*\n51097653\n1.51097653P\n0051384034*51384034* 40083897* 40078422**\n1.51097653P"; if (preg_match_all('~\d{8}(?!\d)\*{0,2}(?!\*)~', $s, $matches)) { print_r(array_unique($matches[0])); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/8LloK
function name:  (null)
number of ops:  15
compiled vars:  !0 = $s, !1 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '8.40083897%2A%0AS903040058061%2A%0A51097653%0A1.51097653P%0A0051384034%2A51384034%2A+40083897%2A+40078422%2A%2A%0A1.51097653P'
    4     1        INIT_FCALL                                                   'preg_match_all'
          2        SEND_VAL                                                     '%7E%5Cd%7B8%7D%28%3F%21%5Cd%29%5C%2A%7B0%2C2%7D%28%3F%21%5C%2A%29%7E'
          3        SEND_VAR                                                     !0
          4        SEND_REF                                                     !1
          5        DO_ICALL                                             $3      
          6      > JMPZ                                                         $3, ->14
    5     7    >   INIT_FCALL                                                   'print_r'
          8        INIT_FCALL                                                   'array_unique'
          9        FETCH_DIM_R                                          ~4      !1, 0
         10        SEND_VAL                                                     ~4
         11        DO_ICALL                                             $5      
         12        SEND_VAR                                                     $5
         13        DO_ICALL                                                     
    6    14    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.08 ms | 480 KiB | 10 Q