3v4l.org

run code in 500+ PHP versions simultaneously
<pre> <?php $html = <<<HTML <li><a href='index.php?case=index'>HOME</a></li> <li><a href='race/'>RACE</a></li> <li><a href="index.php?case=news">NEWS</a></li> <li><a href='index.php?case=pages&url=who'>Who</a></li> <li><a href="index.php?case=pages&url=contact">CONTACT</a></li> HTML; $regexp = "<a\s[^>]*href=(\"|'??)([^\"|' >]*?)\\1[^>]*>(.*)<\/a>"; preg_match_all("/$regexp/siU", $html, $matches); print_r($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dbIJd
function name:  (null)
number of ops:  15
compiled vars:  !0 = $html, !1 = $regexp, !2 = $matches
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                         '%3Cpre%3E%0A'
    4     1        ASSIGN                                                       !0, '++++%3Cli%3E%3Ca+href%3D%27index.php%3Fcase%3Dindex%27%3EHOME%3C%2Fa%3E%3C%2Fli%3E%0A++++%3Cli%3E%3Ca+href%3D%27race%2F%27%3ERACE%3C%2Fa%3E%3C%2Fli%3E%0A++++%3Cli%3E%3Ca+href%3D%22index.php%3Fcase%3Dnews%22%3ENEWS%3C%2Fa%3E%3C%2Fli%3E%0A++++%3Cli%3E%3Ca+href%3D%27index.php%3Fcase%3Dpages%26url%3Dwho%27%3EWho%3C%2Fa%3E%3C%2Fli%3E%0A++++%3Cli%3E%3Ca+href%3D%22index.php%3Fcase%3Dpages%26url%3Dcontact%22%3ECONTACT%3C%2Fa%3E%3C%2Fli%3E'
   12     2        ASSIGN                                                       !1, '%3Ca%5Cs%5B%5E%3E%5D%2Ahref%3D%28%22%7C%27%3F%3F%29%28%5B%5E%22%7C%27+%3E%5D%2A%3F%29%5C1%5B%5E%3E%5D%2A%3E%28.%2A%29%3C%5C%2Fa%3E'
   13     3        INIT_FCALL                                                   'preg_match_all'
          4        ROPE_INIT                                         3  ~6      '%2F'
          5        ROPE_ADD                                          1  ~6      ~6, !1
          6        ROPE_END                                          2  ~5      ~6, '%2FsiU'
          7        SEND_VAL                                                     ~5
          8        SEND_VAR                                                     !0
          9        SEND_REF                                                     !2
         10        DO_ICALL                                                     
   15    11        INIT_FCALL                                                   'print_r'
         12        SEND_VAR                                                     !2
         13        DO_ICALL                                                     
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.11 ms | 2884 KiB | 14 Q