3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php require_once('/homepages/0/d502303335/htdocs/js/simple_html_dom.php'); $html = file_get_html('http://www.hidemyass.com/proxy-list/search-226132'); echo $html; echo "<br><br><br><br><br><br><br><br><br><br><br><br><br>"; echo "<pre>"; foreach ( $html->find ( 'tr' ) as $element ) { $ip = $element->find ( 'td', 1 ); $port = $element->find ( 'td', 2 ); $ip = getIP ( $ip ); // var_dump($element->xmltext); echo " $ip : $port \n"; } function getIP($obj) { global $html; $style = explode ("<style>", $obj->xmltext ); $stile = style[1]; print_r ($stile); $text = str_replace ( "div", "span", $obj->xmltext ); $text = explode ( "span", $text ); echo "<br><br><br><br>"; //print_r($text); echo "<br><br><br><br>"; $ip = array (); foreach ( $text as $value ) { $value = trim ( $value ); $value = trim ( $value, "<" ); $value = trim ( $value, ">" ); $value = trim ( $value, "." ); if (empty ( $value )) continue; if (strpos ( $value, "display:none" )) { continue; } if (strpos ( $value, "display:none" )) { continue; } if (strpos ( $value, ">" )) { $value = "<" . $value . ">"; } $value = strip_tags ( $value ); $value = trim ( $value, "." ); if (empty ( $value )) continue; $ip [] = $value; } if (is_array ( $ip )) { return implode ( ".", $ip ); } } ?>
Output for 5.6.0 - 7.1.0
Warning: require_once(/homepages/0/d502303335/htdocs/js/simple_html_dom.php): failed to open stream: No such file or directory in /in/oS5rE on line 3 Fatal error: require_once(): Failed opening required '/homepages/0/d502303335/htdocs/js/simple_html_dom.php' (include_path='.:') in /in/oS5rE on line 3
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.5.35
Parse error: syntax error, unexpected '[' in /in/oS5rE on line 26
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/oS5rE on line 26
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/oS5rE on line 26
Process exited with code 255.