3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'D109 MU, worked from home today Walked the dog, later took the kids to swimming. D110 MU. Went to the gym in the evening for the 9th time this month.'; var_export(preg_match_all('~D\K\d+~', $string, $out) ? $out[0] : 'fail');
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lp5To
function name:  (null)
number of ops:  15
compiled vars:  !0 = $string, !1 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'D109+MU%2C+worked+from+home+today%0AWalked+the+dog%2C+later+took+the+kids+to+swimming.+D110+MU.+Went+to+the+gym+in+the+++++evening+for+the+9th+time+this+month.'
    5     1        INIT_FCALL                                               'var_export'
          2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAL                                                 '%7ED%5CK%5Cd%2B%7E'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !1
          6        DO_ICALL                                         $3      
          7      > JMPZ                                                     $3, ->11
          8    >   FETCH_DIM_R                                      ~4      !1, 0
          9        QM_ASSIGN                                        ~5      ~4
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~5      'fail'
         12    >   SEND_VAL                                                 ~5
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.55 ms | 1437 KiB | 15 Q