3v4l.org

run code in 300+ PHP versions simultaneously
<?php $response = '{"status":{"timestamp":"2020-09-26T12:59:24.147Z","error_code":0,"error_message":null,"elapsed":13,"credit_count":1,"notice":null},"data":{"BTC":{"id":1,"name":"Bitcoin","symbol":"BTC","slug":"bitcoin","num_market_pairs":9251,"date_added":"2013-04-28T00:00:00.000Z","tags":["mineable","pow","sha-256","store-of-value","state-channels"],"max_supply":21000000,"circulating_supply":18500450,"total_supply":18500450,"is_active":1,"platform":null,"cmc_rank":1,"is_fiat":0,"last_updated":"2020-09-26T12:58:38.000Z","quote":{"USD":{"price":10707.7229962,"volume_24h":20866014910.9822,"percent_change_1h":-0.156013,"percent_change_24h":0.675761,"percent_change_7d":-2.97789,"market_cap":198097693905.04828,"last_updated":"2020-09-26T12:58:38.000Z"}}}}}'; $rate = json_decode($response,true); #print_r($rate); echo $rate['data']['BTC']['quote']['USD']['price'];
Output for git.master, git.master_jit, rfc.property-hooks
10707.7229962

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:
118.18 ms | 405 KiB | 5 Q