3v4l.org

run code in 300+ PHP versions simultaneously
<?php $itemname = rawurlencode("Tec-9 | Isaac (Field-Tested)"); echo $itemname.'<br>'; $addy = "http://steamcommunity.com/market/priceoverview/?currency=1&appid=730&market_hash_name=".$itemname; $price = json_decode(file_get_contents($addy)); if($price->success == 'true') { if($price->median_price) { echo intval(str_replace(str_split('$.'), '', $price->median_price)); } else { echo 'No median price set.'; } } else { echo 'Unable to retrieve price data.'; } echo '<hr>';
Output for git.master, git.master_jit, rfc.property-hooks
Tec-9%20%7C%20Isaac%20%28Field-Tested%29<br> Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for steamcommunity.com failed: System error in /in/Dti50 on line 6 Warning: file_get_contents(http://steamcommunity.com/market/priceoverview/?currency=1&appid=730&market_hash_name=Tec-9%20%7C%20Isaac%20%28Field-Tested%29): Failed to open stream: php_network_getaddresses: getaddrinfo for steamcommunity.com failed: System error in /in/Dti50 on line 6 Warning: Attempt to read property "success" on null in /in/Dti50 on line 8 Unable to retrieve price data.<hr>

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