3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'H: 290‐314 P: 280‐301+330U+200B+331string‐305+351+338‐308+310 [2]'; if (preg_match_all('~(?:\G(?!\A)(?:[^\d\s]*200B)?|P:\h*)[^\d\s]*\K(?!200B)\d+~', $text, $matches)) { print_r($matches[0]); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/mib8W
function name:  (null)
number of ops:  12
compiled vars:  !0 = $text, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'H%3A+290%E2%80%90314+P%3A+280%E2%80%90301%2B330U%2B200B%2B331string%E2%80%90305%2B351%2B338%E2%80%90308%2B310+%5B2%5D'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%7E%28%3F%3A%5CG%28%3F%21%5CA%29%28%3F%3A%5B%5E%5Cd%5Cs%5D%2A200B%29%3F%7CP%3A%5Ch%2A%29%5B%5E%5Cd%5Cs%5D%2A%5CK%28%3F%21200B%29%5Cd%2B%7E'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $3      
          6      > JMPZ                                                     $3, ->11
    5     7    >   INIT_FCALL                                               'print_r'
          8        FETCH_DIM_R                                      ~4      !1, 0
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                                 
    6    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.03 ms | 1010 KiB | 15 Q