3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getBTCValue() { $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]."<br>"; $output .= "<span style='color:#3399ff; font-weight:bold;'>Unexchanged:</span> ".$matches[0][4]."<br>"; $output = "<span style='color:#51d051; font-weight:bold;'>Immature:</span> ".$matches[0][3]."<br>"; $output .= "<span style='color:#000000; font-weight:bold;'>Paid:</span> ".$matches[0][6]."<br>"; return $output; } var_dump(getBTCValue());
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/6BWBu on line 5 Warning: file_get_contents(http://middlecoin.com): Failed to open stream: php_network_getaddresses: getaddrinfo for middlecoin.com failed: System error in /in/6BWBu on line 5 Warning: Undefined array key 0 in /in/6BWBu on line 7 Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /in/6BWBu on line 7 Warning: Undefined array key 5 in /in/6BWBu on line 9 Warning: Undefined variable $output in /in/6BWBu on line 9 Warning: Undefined array key 4 in /in/6BWBu on line 10 Warning: Undefined array key 3 in /in/6BWBu on line 11 Warning: Undefined array key 6 in /in/6BWBu on line 12 string(132) "<span style='color:#51d051; font-weight:bold;'>Immature:</span> <br><span style='color:#000000; font-weight:bold;'>Paid:</span> <br>"

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:
39.56 ms | 403 KiB | 8 Q