<?php
$json = '{"status":{"timestamp":"2021-12-04T13:02:58.558Z","error_code":0,"error_message":null,"elapsed":22,"credit_count":1,"notice":null,"total_count":7934},"data":[{"id":1,"name":"Bitcoin","symbol":"BTC","slug":"bitcoin","num_market_pairs":8308,"date_added":"2013-04-28T00:00:00.000Z","tags":["mineable","pow","sha-256","store-of-value","state-channel","coinbase-ventures-portfolio","three-arrows-capital-portfolio","polychain-capital-portfolio","binance-labs-portfolio","blockchain-capital-portfolio","boostvc-portfolio","cms-holdings-portfolio","dcg-portfolio","dragonfly-capital-portfolio","electric-capital-portfolio","fabric-ventures-portfolio","framework-ventures-portfolio","galaxy-digital-portfolio","huobi-capital-portfolio","alameda-research-portfolio","a16z-portfolio","1confirmation-portfolio","winklevoss-capital-portfolio","usv-portfolio","placeholder-ventures-portfolio","pantera-capital-portfolio","multicoin-capital-portfolio","paradigm-portfolio"],"max_supply":21000000,"circulating_supply":18890987,"total_supply":18890987,"platform":null,"cmc_rank":1,"last_updated":"2021-12-04T13:02:02.000Z","quote":{"USD":{"price":47201.84236157637,"volume_24h":62618418378.936775,"volume_change_24h":94.4686,"percent_change_1h":1.04215459,"percent_change_24h":-17.01631179,"percent_change_7d":-13.77003006,"percent_change_30d":-23.77721437,"percent_change_60d":-5.46384951,"percent_change_90d":-5.79607754,"market_cap":891689390428.5885,"market_cap_dominance":40.5598,"fully_diluted_market_cap":991238689593.1,"last_updated":"2021-12-04T13:02:02.000Z"}}}]}';
$array = json_decode($json,true);
print_r($array);
- Output for 7.3.13 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.30, 8.2.0 - 8.2.25, 8.3.0 - 8.3.4, 8.3.6 - 8.3.14
- Array
(
[status] => Array
(
[timestamp] => 2021-12-04T13:02:58.558Z
[error_code] => 0
[error_message] =>
[elapsed] => 22
[credit_count] => 1
[notice] =>
[total_count] => 7934
)
[data] => Array
(
[0] => Array
(
[id] => 1
[name] => Bitcoin
[symbol] => BTC
[slug] => bitcoin
[num_market_pairs] => 8308
[date_added] => 2013-04-28T00:00:00.000Z
[tags] => Array
(
[0] => mineable
[1] => pow
[2] => sha-256
[3] => store-of-value
[4] => state-channel
[5] => coinbase-ventures-portfolio
[6] => three-arrows-capital-portfolio
[7] => polychain-capital-portfolio
[8] => binance-labs-portfolio
[9] => blockchain-capital-portfolio
[10] => boostvc-portfolio
[11] => cms-holdings-portfolio
[12] => dcg-portfolio
[13] => dragonfly-capital-portfolio
[14] => electric-capital-portfolio
[15] => fabric-ventures-portfolio
[16] => framework-ventures-portfolio
[17] => galaxy-digital-portfolio
[18] => huobi-capital-portfolio
[19] => alameda-research-portfolio
[20] => a16z-portfolio
[21] => 1confirmation-portfolio
[22] => winklevoss-capital-portfolio
[23] => usv-portfolio
[24] => placeholder-ventures-portfolio
[25] => pantera-capital-portfolio
[26] => multicoin-capital-portfolio
[27] => paradigm-portfolio
)
[max_supply] => 21000000
[circulating_supply] => 18890987
[total_supply] => 18890987
[platform] =>
[cmc_rank] => 1
[last_updated] => 2021-12-04T13:02:02.000Z
[quote] => Array
(
[USD] => Array
(
[price] => 47201.842361576
[volume_24h] => 62618418378.937
[volume_change_24h] => 94.4686
[percent_change_1h] => 1.04215459
[percent_change_24h] => -17.01631179
[percent_change_7d] => -13.77003006
[percent_change_30d] => -23.77721437
[percent_change_60d] => -5.46384951
[percent_change_90d] => -5.79607754
[market_cap] => 891689390428.59
[market_cap_dominance] => 40.5598
[fully_diluted_market_cap] => 991238689593.1
[last_updated] => 2021-12-04T13:02:02.000Z
)
)
)
)
)
- Output for 8.3.5
- Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Array
(
[status] => Array
(
[timestamp] => 2021-12-04T13:02:58.558Z
[error_code] => 0
[error_message] =>
[elapsed] => 22
[credit_count] => 1
[notice] =>
[total_count] => 7934
)
[data] => Array
(
[0] => Array
(
[id] => 1
[name] => Bitcoin
[symbol] => BTC
[slug] => bitcoin
[num_market_pairs] => 8308
[date_added] => 2013-04-28T00:00:00.000Z
[tags] => Array
(
[0] => mineable
[1] => pow
[2] => sha-256
[3] => store-of-value
[4] => state-channel
[5] => coinbase-ventures-portfolio
[6] => three-arrows-capital-portfolio
[7] => polychain-capital-portfolio
[8] => binance-labs-portfolio
[9] => blockchain-capital-portfolio
[10] => boostvc-portfolio
[11] => cms-holdings-portfolio
[12] => dcg-portfolio
[13] => dragonfly-capital-portfolio
[14] => electric-capital-portfolio
[15] => fabric-ventures-portfolio
[16] => framework-ventures-portfolio
[17] => galaxy-digital-portfolio
[18] => huobi-capital-portfolio
[19] => alameda-research-portfolio
[20] => a16z-portfolio
[21] => 1confirmation-portfolio
[22] => winklevoss-capital-portfolio
[23] => usv-portfolio
[24] => placeholder-ventures-portfolio
[25] => pantera-capital-portfolio
[26] => multicoin-capital-portfolio
[27] => paradigm-portfolio
)
[max_supply] => 21000000
[circulating_supply] => 18890987
[total_supply] => 18890987
[platform] =>
[cmc_rank] => 1
[last_updated] => 2021-12-04T13:02:02.000Z
[quote] => Array
(
[USD] => Array
(
[price] => 47201.842361576
[volume_24h] => 62618418378.937
[volume_change_24h] => 94.4686
[percent_change_1h] => 1.04215459
[percent_change_24h] => -17.01631179
[percent_change_7d] => -13.77003006
[percent_change_30d] => -23.77721437
[percent_change_60d] => -5.46384951
[percent_change_90d] => -5.79607754
[market_cap] => 891689390428.59
[market_cap_dominance] => 40.5598
[fully_diluted_market_cap] => 991238689593.1
[last_updated] => 2021-12-04T13:02:02.000Z
)
)
)
)
)
preferences:
89.07 ms | 430 KiB | 5 Q