3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"BTC_BCN":{"id":7,"last":"0.00000018","lowestAsk":"0.00000018","highestBid":"0.00000017","percentChange":"0.00000000","baseVolume":"58.73610647","quoteVolume":"328275043.97652394","isFrozen":"0","high24hr":"0.00000019","low24hr":"0.00000017"},"BTC_BELA":{"id":8,"last":"0.00001191","lowestAsk":"0.00001191","highestBid":"0.00001174","percentChange":"0.13536701","baseVolume":"6.33896473","quoteVolume":"572949.02508918","isFrozen":"0","high24hr":"0.00001200","low24hr":"0.00001033"}}'; $arr = json_decode($json, true); Foreach($arr as $key => $val){ Echo "in ".$key . " last is ". $val['last'] ."\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 16
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/UpkOm
function name:  (null)
number of ops:  18
compiled vars:  !0 = $json, !1 = $arr, !2 = $val, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '%7B%22BTC_BCN%22%3A%7B%22id%22%3A7%2C%22last%22%3A%220.00000018%22%2C%22lowestAsk%22%3A%220.00000018%22%2C%22highestBid%22%3A%220.00000017%22%2C%22percentChange%22%3A%220.00000000%22%2C%22baseVolume%22%3A%2258.73610647%22%2C%22quoteVolume%22%3A%22328275043.97652394%22%2C%22isFrozen%22%3A%220%22%2C%22high24hr%22%3A%220.00000019%22%2C%22low24hr%22%3A%220.00000017%22%7D%2C%22BTC_BELA%22%3A%7B%22id%22%3A8%2C%22last%22%3A%220.00001191%22%2C%22lowestAsk%22%3A%220.00001191%22%2C%22highestBid%22%3A%220.00001174%22%2C%22percentChange%22%3A%220.13536701%22%2C%22baseVolume%22%3A%226.33896473%22%2C%22quoteVolume%22%3A%22572949.02508918%22%2C%22isFrozen%22%3A%220%22%2C%22high24hr%22%3A%220.00001200%22%2C%22low24hr%22%3A%220.00001033%22%7D%7D'
    6     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    8     6      > FE_RESET_R                                       $7      !1, ->16
          7    > > FE_FETCH_R                                       ~8      $7, !2, ->16
          8    >   ASSIGN                                                   !3, ~8
    9     9        CONCAT                                           ~10     'in+', !3
         10        CONCAT                                           ~11     ~10, '+last+is+'
         11        FETCH_DIM_R                                      ~12     !2, 'last'
         12        CONCAT                                           ~13     ~11, ~12
         13        CONCAT                                           ~14     ~13, '%0A'
         14        ECHO                                                     ~14
    8    15      > JMP                                                      ->7
         16    >   FE_FREE                                                  $7
   10    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
353.99 ms | 1005 KiB | 14 Q