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){ Extract($val); Echo $key ."\n"; Echo $last ."\n"; Echo $baseVolume ."\n\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 19
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 19
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/aZv1s
function name:  (null)
number of ops:  21
compiled vars:  !0 = $json, !1 = $arr, !2 = $val, !3 = $key, !4 = $last, !5 = $baseVolume
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                                         $7      
          5        ASSIGN                                                   !1, $7
    8     6      > FE_RESET_R                                       $9      !1, ->19
          7    > > FE_FETCH_R                                       ~10     $9, !2, ->19
          8    >   ASSIGN                                                   !3, ~10
    9     9        INIT_FCALL                                               'extract'
         10        SEND_REF                                                 !2
         11        DO_ICALL                                                 
   10    12        CONCAT                                           ~13     !3, '%0A'
         13        ECHO                                                     ~13
   11    14        CONCAT                                           ~14     !4, '%0A'
         15        ECHO                                                     ~14
   12    16        CONCAT                                           ~15     !5, '%0A%0A'
         17        ECHO                                                     ~15
    8    18      > JMP                                                      ->7
         19    >   FE_FREE                                                  $9
   13    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.53 ms | 1007 KiB | 15 Q