3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<HTML <li class="item" xx-href-xx="http://xx.xx/s/randomtext/randomtext?NOTradnomtext" yy-href-gg="http://xx.xx/X/RANDOMTEXTWHATIWANT/STILLRADNOMTEXTWHATIWANT?NOTradnomtext" data="212123134" data-title="TITLE"> <a class="front" href="#" xx-href="http://xx.xx/s/randomtext/randomtext?NOTradnomtext"> <img src="http://photo.jpg" alt=""> <div class="cock"> <div class="action"></div> </div> </a> <div class="label"> <div> <h3 class="title">Example</h3> <p>2013-10-25 : 03:35</p> </div> </div> </li> HTML; preg_match_all( '# [a-z]{2}-href-[a-z]{2}="https?://[^/"?]+/[^/"?]+/\K[^/"?]+/[^/"?]+#i', $html, $matches ); var_export($matches[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FVHgA
function name:  (null)
number of ops:  11
compiled vars:  !0 = $html, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cli+class%3D%22item%22+xx-href-xx%3D%22http%3A%2F%2Fxx.xx%2Fs%2Frandomtext%2Frandomtext%3FNOTradnomtext%22+yy-href-gg%3D%22http%3A%2F%2Fxx.xx%2FX%2FRANDOMTEXTWHATIWANT%2FSTILLRADNOMTEXTWHATIWANT%3FNOTradnomtext%22+data%3D%22212123134%22+data-title%3D%22TITLE%22%3E%0A++++++++++++++++++++++%3Ca+class%3D%22front%22+href%3D%22%23%22+xx-href%3D%22http%3A%2F%2Fxx.xx%2Fs%2Frandomtext%2Frandomtext%3FNOTradnomtext%22%3E%0A++++++++++++++++++++++++%3Cimg+src%3D%22http%3A%2F%2Fphoto.jpg%22+alt%3D%22%22%3E%0A++++++++++++++++++++++++++++%3Cdiv+class%3D%22cock%22%3E%0A++++++++++++++++++++++++++++++++%3Cdiv+class%3D%22action%22%3E%3C%2Fdiv%3E%0A++++++++++++++++++++++++++++%3C%2Fdiv%3E%0A++++++++++++++++++++++++%3C%2Fa%3E%0A++++++++++++++++++++++++%3Cdiv+class%3D%22label%22%3E%0A++++++++++++++++++++++++++++%3Cdiv%3E%0A++++++++++++++++++++++++++++++++%3Ch3+class%3D%22title%22%3EExample%3C%2Fh3%3E%0A++++++++++++++++++++++++++++++++%3Cp%3E2013-10-25+%3A+03%3A35%3C%2Fp%3E%0A++++++++++++++++++++++++++++%3C%2Fdiv%3E%0A++++++++++++++++++++++++%3C%2Fdiv%3E%0A++++++++++++++++++++%3C%2Fli%3E'
   20     1        INIT_FCALL                                               'preg_match_all'
   21     2        SEND_VAL                                                 '%23+%5Ba-z%5D%7B2%7D-href-%5Ba-z%5D%7B2%7D%3D%22https%3F%3A%2F%2F%5B%5E%2F%22%3F%5D%2B%2F%5B%5E%2F%22%3F%5D%2B%2F%5CK%5B%5E%2F%22%3F%5D%2B%2F%5B%5E%2F%22%3F%5D%2B%23i'
   22     3        SEND_VAR                                                 !0
   23     4        SEND_REF                                                 !1
   20     5        DO_ICALL                                                 
   25     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:
151.77 ms | 1002 KiB | 15 Q