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>';

preferences:
64.7 ms | 402 KiB | 5 Q