3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = 'http://middlecoin.com'; $contents = file_get_contents($url); preg_match_all('/<td>(.*?)<\/td>/s', $contents, $matches); $ex = explode(" ", strip_tags($matches[0][0])); $output .= "<span style='color:red; font-weight:bold;'>Balance:</span> ".$matches[0][5]." BTC<br />"; $output .= "<span style='color:#3399ff; font-weight:bold;'>Unexchanged:</span> ".$matches[0][4]." BTC<br />"; $output .= "<span style='color:#51d051; font-weight:bold;'>Immature:</span> ".$matches[0][3]." BTC<br />"; //$output .= "<span style='color:#000000; font-weight:bold;'>Paid:</span> ".$matches[0][6]."<br />"; $output .= "<br /><span style='font-weight:bold;'><a href='middlecoin-graph.php'>MiddleCoin Graph</a></span>"; return $output; ?>
Output for 5.3.0 - 7.3.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/EoT8m on line 4 Warning: file_get_contents(http://middlecoin.com): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/EoT8m on line 4 Notice: Undefined offset: 0 in /in/EoT8m on line 6 Notice: Undefined offset: 5 in /in/EoT8m on line 8 Notice: Undefined variable: output in /in/EoT8m on line 8 Notice: Undefined offset: 4 in /in/EoT8m on line 9 Notice: Undefined offset: 3 in /in/EoT8m on line 10
Output for 5.2.6 - 5.2.17
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/EoT8m on line 4 Warning: file_get_contents(http://middlecoin.com): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/EoT8m on line 4 Notice: Undefined offset: 0 in /in/EoT8m on line 6 Notice: Undefined offset: 5 in /in/EoT8m on line 8 Notice: Undefined variable: output in /in/EoT8m on line 8 Notice: Undefined offset: 4 in /in/EoT8m on line 9 Notice: Undefined offset: 3 in /in/EoT8m on line 10
Output for 5.0.4 - 5.2.5
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/EoT8m on line 4 Warning: file_get_contents(http://middlecoin.com): failed to open stream: Connection refused in /in/EoT8m on line 4 Notice: Undefined offset: 0 in /in/EoT8m on line 6 Notice: Undefined offset: 5 in /in/EoT8m on line 8 Notice: Undefined variable: output in /in/EoT8m on line 8 Notice: Undefined offset: 4 in /in/EoT8m on line 9 Notice: Undefined offset: 3 in /in/EoT8m on line 10
Output for 4.3.3 - 4.3.4, 4.3.10 - 4.4.9, 5.0.3
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/EoT8m on line 4 Warning: file_get_contents(http://middlecoin.com): failed to open stream: Connection refused in /in/EoT8m on line 4 Notice: Undefined offset: 0 in /in/EoT8m on line 6 Notice: Undefined offset: 5 in /in/EoT8m on line 8 Notice: Undefined variable: output in /in/EoT8m on line 8 Notice: Undefined offset: 4 in /in/EoT8m on line 9 Notice: Undefined offset: 3 in /in/EoT8m on line 10
Output for 4.3.5 - 4.3.9, 5.0.1 - 5.0.2
Warning: file_get_contents(): php_network_getaddresses: gethostbyname failed in /in/EoT8m on line 4 Warning: file_get_contents(http://middlecoin.com): failed to open stream: Resource temporarily unavailable in /in/EoT8m on line 4 Notice: Undefined offset: 0 in /in/EoT8m on line 6 Notice: Undefined offset: 5 in /in/EoT8m on line 8 Notice: Undefined variable: output in /in/EoT8m on line 8 Notice: Undefined offset: 4 in /in/EoT8m on line 9 Notice: Undefined offset: 3 in /in/EoT8m on line 10
Output for 5.0.0
Warning: file_get_contents(): php_network_getaddresses: gethostbyname failed in /in/EoT8m on line 4 Warning: file_get_contents(http://middlecoin.com): failed to open stream: Bad file descriptor in /in/EoT8m on line 4 Notice: Undefined offset: 0 in /in/EoT8m on line 6 Notice: Undefined offset: 5 in /in/EoT8m on line 8 Notice: Undefined variable: output in /in/EoT8m on line 8 Notice: Undefined offset: 4 in /in/EoT8m on line 9 Notice: Undefined offset: 3 in /in/EoT8m on line 10
Output for 4.3.2
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error (is your IPV6 configuration correct? If this error happens all the time, try reconfiguring PHP using --disable-ipv6 option to configure) in /in/EoT8m on line 4 Warning: file_get_contents(http://middlecoin.com): failed to open stream: Connection refused in /in/EoT8m on line 4 Notice: Undefined offset: 0 in /in/EoT8m on line 6 Notice: Undefined offset: 5 in /in/EoT8m on line 8 Notice: Undefined variable: output in /in/EoT8m on line 8 Notice: Undefined offset: 4 in /in/EoT8m on line 9 Notice: Undefined offset: 3 in /in/EoT8m on line 10
Output for 4.3.0 - 4.3.1
Warning: file_get_contents() [http://www.php.net/function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: System error in /in/EoT8m on line 4 Warning: file_get_contents(http://middlecoin.com) [http://www.php.net/function.file-get-contents]: failed to create stream: Connection refused in /in/EoT8m on line 4 Notice: Undefined offset: 0 in /in/EoT8m on line 6 Notice: Undefined offset: 5 in /in/EoT8m on line 8 Notice: Undefined variable: output in /in/EoT8m on line 8 Notice: Undefined offset: 4 in /in/EoT8m on line 9 Notice: Undefined offset: 3 in /in/EoT8m on line 10