3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = <<<EOF <html> <head> <link href='http://wendyandgabe.blogspot.com/favicon.ico' rel='icon' type='image/x-icon'/> <link href='http://wendyandgabe.blogspot.com/' rel='canonical'/> <link rel="alternate" type="application/atom+xml" title="O&#39; Happy Day! - Atom" href="http://wendyandgabe.blogspot.com/feeds/posts/default" /> <link rel="alternate" type="application/rss+xml" title="O&#39; Happy Day! - RSS" href="http://wendyandgabe.blogspot.com/feeds/posts/default?alt=rss" /> <link rel="service.post" type="application/atom+xml" title="O&#39; Happy Day! - Atom" href="http://www.blogger.com/feeds/5390468261501503598/posts/default" /> </head> <body> </body> </html> EOF; preg_match_all('/<link[^>]+>/i',$data, $urls); foreach($urls[0] as $url) { if(preg_match('/application\/rss\+xml/i', $url)) { preg_match('/href=["\']?([^"\'>]+)["\']?/i',$url, $match); echo $match[1]."\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 23
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 23
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 22
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 22
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/TEYDc
function name:  (null)
number of ops:  25
compiled vars:  !0 = $data, !1 = $urls, !2 = $url, !3 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Chtml%3E%0A++%3Chead%3E++++%0A++++%3Clink+href%3D%27http%3A%2F%2Fwendyandgabe.blogspot.com%2Ffavicon.ico%27+rel%3D%27icon%27+type%3D%27image%2Fx-icon%27%2F%3E%0A++++%3Clink+href%3D%27http%3A%2F%2Fwendyandgabe.blogspot.com%2F%27+rel%3D%27canonical%27%2F%3E%0A++++%3Clink+rel%3D%22alternate%22+type%3D%22application%2Fatom%2Bxml%22+title%3D%22O%26%2339%3B+Happy+Day%21+-+Atom%22+href%3D%22http%3A%2F%2Fwendyandgabe.blogspot.com%2Ffeeds%2Fposts%2Fdefault%22+%2F%3E%0A++++%3Clink+rel%3D%22alternate%22+type%3D%22application%2Frss%2Bxml%22+title%3D%22O%26%2339%3B+Happy+Day%21+-+RSS%22+href%3D%22http%3A%2F%2Fwendyandgabe.blogspot.com%2Ffeeds%2Fposts%2Fdefault%3Falt%3Drss%22+%2F%3E%0A++++%3Clink+rel%3D%22service.post%22+type%3D%22application%2Fatom%2Bxml%22+title%3D%22O%26%2339%3B+Happy+Day%21+-+Atom%22+href%3D%22http%3A%2F%2Fwww.blogger.com%2Ffeeds%2F5390468261501503598%2Fposts%2Fdefault%22+%2F%3E%0A++%3C%2Fhead%3E%0A++%3Cbody%3E%0A++%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   16     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%3Clink%5B%5E%3E%5D%2B%3E%2Fi'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
   17     6        FETCH_DIM_R                                      ~6      !1, 0
          7      > FE_RESET_R                                       $7      ~6, ->23
          8    > > FE_FETCH_R                                               $7, !2, ->23
   18     9    >   INIT_FCALL                                               'preg_match'
         10        SEND_VAL                                                 '%2Fapplication%5C%2Frss%5C%2Bxml%2Fi'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $8      
         13      > JMPZ                                                     $8, ->22
   19    14    >   INIT_FCALL                                               'preg_match'
         15        SEND_VAL                                                 '%2Fhref%3D%5B%22%27%5D%3F%28%5B%5E%22%27%3E%5D%2B%29%5B%22%27%5D%3F%2Fi'
         16        SEND_VAR                                                 !2
         17        SEND_REF                                                 !3
         18        DO_ICALL                                                 
   20    19        FETCH_DIM_R                                      ~10     !3, 1
         20        CONCAT                                           ~11     ~10, '%0A'
         21        ECHO                                                     ~11
   17    22    > > JMP                                                      ->8
         23    >   FE_FREE                                                  $7
   22    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.43 ms | 1388 KiB | 17 Q