3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dataStr = '[ { "id": "bitcoin", "name": "Bitcoin", "symbol": "BTC", "rank": "1", "price_usd": "7598.02", "price_btc": "1.0", "24h_volume_usd": "5106040000.0", "market_cap_usd": "128754238591", "available_supply": "16945762.0", "total_supply": "16945762.0", "max_supply": "21000000.0", "percent_change_1h": "0.01", "percent_change_24h": "-5.69", "percent_change_7d": "-14.2", "last_updated": "1522317867", "price_eur": "6162.0702002", "24h_volume_eur": "4141049500.4", "market_cap_eur": "104420975040" }, { "id": "ethereum", "name": "Ethereum", "symbol": "ETH", "rank": "2", "price_usd": "415.793", "price_btc": "0.0552943", "24h_volume_usd": "1521500000.0", "market_cap_usd": "40949398071.0", "available_supply": "98485059.0", "total_supply": "98485059.0", "max_supply": null, "percent_change_1h": "-1.02", "percent_change_24h": "-9.97", "percent_change_7d": "-24.69", "last_updated": "1522317854", "price_eur": "337.21228093", "24h_volume_eur": "1233951715.0", "market_cap_eur": "33210371330.0" } ]'; $data = json_decode($dataStr, true); foreach($data as $val){ echo "\n".$val['24h_volume_eur']; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/26PNC
function name:  (null)
number of ops:  14
compiled vars:  !0 = $dataStr, !1 = $data, !2 = $val
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%5B%0A++++%7B%0A++++++++%22id%22%3A+%22bitcoin%22%2C%0A++++++++%22name%22%3A+%22Bitcoin%22%2C%0A++++++++%22symbol%22%3A+%22BTC%22%2C%0A++++++++%22rank%22%3A+%221%22%2C%0A++++++++%22price_usd%22%3A+%227598.02%22%2C%0A++++++++%22price_btc%22%3A+%221.0%22%2C%0A++++++++%2224h_volume_usd%22%3A+%225106040000.0%22%2C%0A++++++++%22market_cap_usd%22%3A+%22128754238591%22%2C%0A++++++++%22available_supply%22%3A+%2216945762.0%22%2C%0A++++++++%22total_supply%22%3A+%2216945762.0%22%2C%0A++++++++%22max_supply%22%3A+%2221000000.0%22%2C%0A++++++++%22percent_change_1h%22%3A+%220.01%22%2C%0A++++++++%22percent_change_24h%22%3A+%22-5.69%22%2C%0A++++++++%22percent_change_7d%22%3A+%22-14.2%22%2C%0A++++++++%22last_updated%22%3A+%221522317867%22%2C%0A++++++++%22price_eur%22%3A+%226162.0702002%22%2C%0A++++++++%2224h_volume_eur%22%3A+%224141049500.4%22%2C%0A++++++++%22market_cap_eur%22%3A+%22104420975040%22%0A++++%7D%2C%0A++++%7B%0A++++++++%22id%22%3A+%22ethereum%22%2C%0A++++++++%22name%22%3A+%22Ethereum%22%2C%0A++++++++%22symbol%22%3A+%22ETH%22%2C%0A++++++++%22rank%22%3A+%222%22%2C%0A++++++++%22price_usd%22%3A+%22415.793%22%2C%0A++++++++%22price_btc%22%3A+%220.0552943%22%2C%0A++++++++%2224h_volume_usd%22%3A+%221521500000.0%22%2C%0A++++++++%22market_cap_usd%22%3A+%2240949398071.0%22%2C%0A++++++++%22available_supply%22%3A+%2298485059.0%22%2C%0A++++++++%22total_supply%22%3A+%2298485059.0%22%2C%0A++++++++%22max_supply%22%3A+null%2C%0A++++++++%22percent_change_1h%22%3A+%22-1.02%22%2C%0A++++++++%22percent_change_24h%22%3A+%22-9.97%22%2C%0A++++++++%22percent_change_7d%22%3A+%22-24.69%22%2C%0A++++++++%22last_updated%22%3A+%221522317854%22%2C%0A++++++++%22price_eur%22%3A+%22337.21228093%22%2C%0A++++++++%2224h_volume_eur%22%3A+%221233951715.0%22%2C%0A++++++++%22market_cap_eur%22%3A+%2233210371330.0%22%0A++++%7D%0A%5D'
   45     1        INIT_FCALL                                                   'json_decode'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     <true>
          4        DO_ICALL                                             $4      
          5        ASSIGN                                                       !1, $4
   46     6      > FE_RESET_R                                           $6      !1, ->12
          7    > > FE_FETCH_R                                                   $6, !2, ->12
   47     8    >   FETCH_DIM_R                                          ~7      !2, '24h_volume_eur'
          9        CONCAT                                               ~8      '%0A', ~7
         10        ECHO                                                         ~8
   46    11      > JMP                                                          ->7
         12    >   FE_FREE                                                      $6
   48    13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.04 ms | 2529 KiB | 14 Q