3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '<div class="textrcolumn">&nbsp;<i><a rel="nofollow" style="color:#7ACD1B" href="http://www.szukammp3.pl" target="new">www.szukammp3.pl</a></i> - 2.95 MB - <a title = "Download : deep purple - soldier of fortune Mp3" href="url?id&#61;MTU2MjUyMTV8ODMxMDQ0"><u>Download</u></a> - <a title= "Listen to : deep purple - soldier of fortune without having to download the song!" HREF="javascript:;" onClick="niftyplayer("niftyPlayer1").loadAndPlay("http://www.szukammp3.pl/mp3/download/j8zIONFfEl/deep_purple_-_soldier_of_fortune.mp3")"><u>Listen</u></a> - <a title = "Find lyrics for deep purple - soldier of fortune" href="search?q=lyrics:deep purple - soldier of fortune"><u>Lyrics</u></a> </div><br>'; $dom=new DOMDocument(); @$dom->loadHTML($a); $divtag = $dom->getElementsByTagName('div'); foreach ($divtag as $div) { preg_match("/loadAndPlay(\"(.*?)/",$dom->saveHTML($div),$matches); var_dump($matches); //preg_match("/loadAndPlay\('(.*?\)')/",$dom->saveHTML($div),$matches); /* $atagD7 = $dom->saveHTML($div); $doma=new DOMDocument(); @$doma->loadHTML($atagD7); $atagD7 = null; $doma = null; */ //var_dump($div->nodeValue); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 27
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 27
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/302O2
function name:  (null)
number of ops:  29
compiled vars:  !0 = $a, !1 = $dom, !2 = $divtag, !3 = $div, !4 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cdiv+class%3D%22textrcolumn%22%3E%26nbsp%3B%3Ci%3E%3Ca+rel%3D%22nofollow%22+style%3D%22color%3A%237ACD1B%22+href%3D%22http%3A%2F%2Fwww.szukammp3.pl%22+target%3D%22new%22%3Ewww.szukammp3.pl%3C%2Fa%3E%3C%2Fi%3E+-%0A++++++++++++++++++++++++++++2.95+MB+-%0A++++++++++++++++++++++++++++%3Ca++title+%3D+%22Download+%3A+deep+purple++-++soldier+of+fortune+Mp3%22+href%3D%22url%3Fid%26%2361%3BMTU2MjUyMTV8ODMxMDQ0%22%3E%3Cu%3EDownload%3C%2Fu%3E%3C%2Fa%3E+-%0A++++++++++++++++++++++++++++%3Ca+title%3D+%22Listen+to+%3A+deep+purple++-++soldier+of+fortune+without+having+to+download+the+song%21%22+HREF%3D%22javascript%3A%3B%22+onClick%3D%22niftyplayer%28%22niftyPlayer1%22%29.loadAndPlay%28%22http%3A%2F%2Fwww.szukammp3.pl%2Fmp3%2Fdownload%2Fj8zIONFfEl%2Fdeep_purple_-_soldier_of_fortune.mp3%22%29%22%3E%3Cu%3EListen%3C%2Fu%3E%3C%2Fa%3E+-+%0A++++++++++++++++++++++++++++%3Ca+title+%3D+%22Find+lyrics+for+deep+purple++-++soldier+of+fortune%22+href%3D%22search%3Fq%3Dlyrics%3Adeep+purple++-++soldier+of+fortune%22%3E%3Cu%3ELyrics%3C%2Fu%3E%3C%2Fa%3E%0A++++++++++++++++++++%3C%2Fdiv%3E%3Cbr%3E'
    9     1        NEW                                              $6      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $6
   10     4        BEGIN_SILENCE                                    ~9      
          5        INIT_METHOD_CALL                                         !1, 'loadHTML'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
          8        END_SILENCE                                              ~9
   11     9        INIT_METHOD_CALL                                         !1, 'getElementsByTagName'
         10        SEND_VAL_EX                                              'div'
         11        DO_FCALL                                      0  $11     
         12        ASSIGN                                                   !2, $11
   12    13      > FE_RESET_R                                       $13     !2, ->27
         14    > > FE_FETCH_R                                               $13, !3, ->27
   14    15    >   INIT_FCALL                                               'preg_match'
         16        SEND_VAL                                                 '%2FloadAndPlay%28%22%28.%2A%3F%29%2F'
         17        INIT_METHOD_CALL                                         !1, 'saveHTML'
         18        SEND_VAR_EX                                              !3
         19        DO_FCALL                                      0  $14     
         20        SEND_VAR                                                 $14
         21        SEND_REF                                                 !4
         22        DO_ICALL                                                 
   15    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !4
         25        DO_ICALL                                                 
   12    26      > JMP                                                      ->14
         27    >   FE_FREE                                                  $13
   31    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.27 ms | 1392 KiB | 17 Q