3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = " поле1 - значение поле2: значение поле3: значение поле4: значение поле2: значение"; if (preg_match('/поле2:\K.*?(?=поле3:)/su', $text, $match)) { echo $match[0]; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/o2lj4
function name:  (null)
number of ops:  10
compiled vars:  !0 = $text, !1 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '+%D0%BF%D0%BE%D0%BB%D0%B51+-+%D0%B7%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8%D0%B5%0A%D0%BF%D0%BE%D0%BB%D0%B52%3A+%D0%B7%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8%D0%B5%0A%D0%BF%D0%BE%D0%BB%D0%B53%3A+%D0%B7%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8%D0%B5%0A%D0%BF%D0%BE%D0%BB%D0%B54%3A+%D0%B7%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8%D0%B5%0A%D0%BF%D0%BE%D0%BB%D0%B52%3A+%D0%B7%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8%D0%B5'
    8     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%D0%BF%D0%BE%D0%BB%D0%B52%3A%5CK.%2A%3F%28%3F%3D%D0%BF%D0%BE%D0%BB%D0%B53%3A%29%2Fsu'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $3      
          6      > JMPZ                                                     $3, ->9
    9     7    >   FETCH_DIM_R                                      ~4      !1, 0
          8        ECHO                                                     ~4
   10     9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.84 ms | 1399 KiB | 15 Q