3v4l.org

run code in 500+ PHP versions simultaneously
<?php $text = 'advcd<img loading="lazy" class="abcd pqr" alt="chi-phi-sinh-o-benh-v"ien-dai-hoc-y-duoc-co-so-2" attr="val"><img loading="lazy" class="abcd pqr" alt="abcd-sinh-o-benh-"ien-dai-hoc-y-duoc-co-so-3">sdfs'; preg_match_all('/(alt)=(".*?"(?=\s*(?:[^\s=]+="|>)))/i', $text, $matches); if (count($matches) > 1) { print_r($matches); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/haB6G
function name:  (null)
number of ops:  13
compiled vars:  !0 = $text, !1 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'advcd%3Cimg+loading%3D%22lazy%22+class%3D%22abcd+pqr%22+alt%3D%22chi-phi-sinh-o-benh-v%22ien-dai-hoc-y-duoc-co-so-2%22+attr%3D%22val%22%3E%3Cimg+loading%3D%22lazy%22+class%3D%22abcd+pqr%22+alt%3D%22abcd-sinh-o-benh-%22ien-dai-hoc-y-duoc-co-so-3%22%3Esdfs'
    5     1        INIT_FCALL                                                   'preg_match_all'
          2        SEND_VAL                                                     '%2F%28alt%29%3D%28%22.%2A%3F%22%28%3F%3D%5Cs%2A%28%3F%3A%5B%5E%5Cs%3D%5D%2B%3D%22%7C%3E%29%29%29%2Fi'
          3        SEND_VAR                                                     !0
          4        SEND_REF                                                     !1
          5        DO_ICALL                                                     
    7     6        COUNT                                                ~4      !1
          7        IS_SMALLER                                                   1, ~4
          8      > JMPZ                                                         ~5, ->12
    8     9    >   INIT_FCALL                                                   'print_r'
         10        SEND_VAR                                                     !1
         11        DO_ICALL                                                     
    9    12    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.69 ms | 1987 KiB | 15 Q