3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'H: 290‐314 P: 280‐301+330U+200B+331string‐305+351+338‐308+310 [2]'; preg_match_all('~(?:P: |\G(?!^)(?:U\+200B)?[^\d ]+)\K\d+~', $str, $m); var_export($m[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BcPRd
function name:  (null)
number of ops:  11
compiled vars:  !0 = $str, !1 = $m
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%3AP%3A+%7C%5CG%28%3F%21%5E%29%28%3F%3AU%5C%2B200B%29%3F%5B%5E%5Cd+%5D%2B%29%5CK%5Cd%2B%7E'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'var_export'
          7        FETCH_DIM_R                                      ~4      !1, 0
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.31 ms | 1004 KiB | 15 Q