3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for middlecoin.com failed: System error in /in/EoT8m on line 4 Warning: file_get_contents(http://middlecoin.com): Failed to open stream: php_network_getaddresses: getaddrinfo for middlecoin.com failed: System error in /in/EoT8m on line 4 Warning: Undefined array key 0 in /in/EoT8m on line 6 Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /in/EoT8m on line 6 Warning: Undefined array key 5 in /in/EoT8m on line 8 Warning: Undefined variable $output in /in/EoT8m on line 8 Warning: Undefined array key 4 in /in/EoT8m on line 9 Warning: Undefined array key 3 in /in/EoT8m on line 10

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:
33.41 ms | 402 KiB | 8 Q