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'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gi7jB
function name:  (null)
number of ops:  13
compiled vars:  !0 = $response, !1 = $rate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%22status%22%3A%7B%22timestamp%22%3A%222020-09-26T12%3A59%3A24.147Z%22%2C%22error_code%22%3A0%2C%22error_message%22%3Anull%2C%22elapsed%22%3A13%2C%22credit_count%22%3A1%2C%22notice%22%3Anull%7D%2C%22data%22%3A%7B%22BTC%22%3A%7B%22id%22%3A1%2C%22name%22%3A%22Bitcoin%22%2C%22symbol%22%3A%22BTC%22%2C%22slug%22%3A%22bitcoin%22%2C%22num_market_pairs%22%3A9251%2C%22date_added%22%3A%222013-04-28T00%3A00%3A00.000Z%22%2C%22tags%22%3A%5B%22mineable%22%2C%22pow%22%2C%22sha-256%22%2C%22store-of-value%22%2C%22state-channels%22%5D%2C%22max_supply%22%3A21000000%2C%22circulating_supply%22%3A18500450%2C%22total_supply%22%3A18500450%2C%22is_active%22%3A1%2C%22platform%22%3Anull%2C%22cmc_rank%22%3A1%2C%22is_fiat%22%3A0%2C%22last_updated%22%3A%222020-09-26T12%3A58%3A38.000Z%22%2C%22quote%22%3A%7B%22USD%22%3A%7B%22price%22%3A10707.7229962%2C%22volume_24h%22%3A20866014910.9822%2C%22percent_change_1h%22%3A-0.156013%2C%22percent_change_24h%22%3A0.675761%2C%22percent_change_7d%22%3A-2.97789%2C%22market_cap%22%3A198097693905.04828%2C%22last_updated%22%3A%222020-09-26T12%3A58%3A38.000Z%22%7D%7D%7D%7D%7D'
    5     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    7     6        FETCH_DIM_R                                      ~5      !1, 'data'
          7        FETCH_DIM_R                                      ~6      ~5, 'BTC'
          8        FETCH_DIM_R                                      ~7      ~6, 'quote'
          9        FETCH_DIM_R                                      ~8      ~7, 'USD'
         10        FETCH_DIM_R                                      ~9      ~8, 'price'
         11        ECHO                                                     ~9
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
128.17 ms | 1000 KiB | 14 Q