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());

preferences:
34.77 ms | 402 KiB | 5 Q