3v4l.org

run code in 300+ PHP versions simultaneously
<?php $remote_links = "http://es.ninemanga.com/chapter/LALEYENDADEASURAPRLOGONovelaCaptulo1/649751/ http://es.ninemanga.com/chapter/UglyDucklingCaptulo5/649745/"; $content_arr = preg_split("/\n/",$remote_links); $length = count($remote_links); for($j=0;$j<count($remote_links);$j++){ $html = file_get_contents($remote_links[$j], false, $context); //Create a new DOM document $dom = new DOMDocument; //Parse the HTML. The @ is used to suppress any parsing errors //that will be thrown if the $html string isn't valid XHTML. @$dom->loadHTML($html); //Get all links. You could also use any other tag name here, //like 'img' or 'table', to extract other tags. $links = $dom->getElementsByTagName('a'); //Iterate over the extracted links and display their URLs foreach ($links as $link){ //Extract and show the "href" attribute. //echo $link->nodeValue; echo $link->getAttribute('href'), '<br>'; // var_dump ($html); // $html = str_replace('<br />', ',', $html).PHP_EOL; //echo $html.PHP_EOL; //print_r(htmlentities($content).'<br>'); } // print $content_arr[$i].PHP_EOL; //print $title.PHP_EOL; //print $title_no.PHP_EOL; //print $TITLE_master.PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /in/hgpho:7 Stack trace: #0 {main} thrown in /in/hgpho on line 7
Process exited with code 255.

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:
27.89 ms | 405 KiB | 5 Q