3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = file_get_contents("http://steamcommunity.com/market/priceoverview/?appid=570&currency=1&market_hash_name=Pudgling"); $data_jsons = json_decode($data, true); $lowest = $data_jsons['lowest_price']; $median = $data_jsons['median_price']; $contents = "Lowest price " . $lowest . " and median price " . $median; echo str_replace("/&#36;/","", $contents); // It's will replace all HTML special chars ?>
Output for git.master, git.master_jit
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for steamcommunity.com failed: System error in /in/hKNih on line 3 Warning: file_get_contents(http://steamcommunity.com/market/priceoverview/?appid=570&currency=1&market_hash_name=Pudgling): Failed to open stream: php_network_getaddresses: getaddrinfo for steamcommunity.com failed: System error in /in/hKNih on line 3 Warning: Trying to access array offset on value of type null in /in/hKNih on line 6 Warning: Trying to access array offset on value of type null in /in/hKNih on line 7 Lowest price and median price
Output for rfc.property-hooks
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for steamcommunity.com failed: System error in /in/hKNih on line 3 Warning: file_get_contents(http://steamcommunity.com/market/priceoverview/?appid=570&currency=1&market_hash_name=Pudgling): Failed to open stream: php_network_getaddresses: getaddrinfo for steamcommunity.com failed: System error in /in/hKNih on line 3 Warning: Trying to access array offset on null in /in/hKNih on line 6 Warning: Trying to access array offset on null in /in/hKNih on line 7 Lowest price and median price

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.24 ms | 402 KiB | 8 Q