3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: require_once(): open_basedir restriction in effect. File(/homepages/0/d502303335/htdocs/js/simple_html_dom.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/oS5rE on line 3 Warning: require_once(/homepages/0/d502303335/htdocs/js/simple_html_dom.php): Failed to open stream: Operation not permitted in /in/oS5rE on line 3 Fatal error: Uncaught Error: Failed opening required '/homepages/0/d502303335/htdocs/js/simple_html_dom.php' (include_path='.:') in /in/oS5rE:3 Stack trace: #0 {main} thrown in /in/oS5rE on line 3
Process exited with code 255.
Output for 8.0.13
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: Uncaught Error: Failed opening required '/homepages/0/d502303335/htdocs/js/simple_html_dom.php' (include_path='.:') in /in/oS5rE:3 Stack trace: #0 {main} thrown in /in/oS5rE on line 3
Process exited with code 255.
Output for 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.7, 7.3.32 - 7.3.33, 7.4.26, 7.4.33
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 7.2.29 - 7.2.33, 7.3.12 - 7.3.31, 7.4.0 - 7.4.25, 7.4.27 - 7.4.32
Warning: require_once(): open_basedir restriction in effect. File(/homepages/0/d502303335/htdocs/js/simple_html_dom.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/oS5rE on line 3 Warning: require_once(/homepages/0/d502303335/htdocs/js/simple_html_dom.php): failed to open stream: Operation not permitted 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 7.1.20, 7.2.6
Warning: require_once(): open_basedir restriction in effect. File(/homepages/0/d502303335/htdocs/js/simple_html_dom.php) is not within the allowed path(s): (/tmp:/in) in /in/oS5rE on line 3 Warning: require_once(/homepages/0/d502303335/htdocs/js/simple_html_dom.php): failed to open stream: Operation not permitted 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.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.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.3.11, 4.4.0 - 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.

preferences:
227.47 ms | 401 KiB | 344 Q