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("/download/",$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); } ?>
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { [0]=> string(8) "download" }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
44.77 ms | 401 KiB | 8 Q