3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '<strong>Название: </strong>Приключения Толи Клюквина <br /><strong></stro'; if (preg_match('#>Название([\s:]?)</(span|strong|b|p)>(.*?)<br#is', $string, $matches)) { if(isset($matches[3])) echo trim(strip_tags($matches[3])); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 17
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
Branch analysis from position: 17
filename:       /in/FMTsA
function name:  (null)
number of ops:  18
compiled vars:  !0 = $string, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cstrong%3E%D0%9D%D0%B0%D0%B7%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5%3A+%3C%2Fstrong%3E%D0%9F%D1%80%D0%B8%D0%BA%D0%BB%D1%8E%D1%87%D0%B5%D0%BD%D0%B8%D1%8F+%D0%A2%D0%BE%D0%BB%D0%B8+%D0%9A%D0%BB%D1%8E%D0%BA%D0%B2%D0%B8%D0%BD%D0%B0+%3Cbr+%2F%3E%3Cstrong%3E%3C%2Fstro'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%23%3E%D0%9D%D0%B0%D0%B7%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5%28%5B%5Cs%3A%5D%3F%29%3C%2F%28span%7Cstrong%7Cb%7Cp%29%3E%28.%2A%3F%29%3Cbr%23is'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                         $3      
          6      > JMPZ                                                     $3, ->17
    5     7    >   ISSET_ISEMPTY_DIM_OBJ                         0          !1, 3
          8      > JMPZ                                                     ~4, ->17
          9    >   INIT_FCALL                                               'trim'
         10        INIT_FCALL                                               'strip_tags'
         11        FETCH_DIM_R                                      ~5      !1, 3
         12        SEND_VAL                                                 ~5
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                         $7      
         16        ECHO                                                     $7
    6    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.25 ms | 1395 KiB | 19 Q