3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "data": [{ "BrandID": 1, "AccountTranID": "138483", "Datetime": { "date": "2019-07-31 21:26:15.513000", "timezone_type": 3, "timezone": "UTC" }, "PartyID": 1819748, "UserID": "adel2X", "Currency": "USD", "ProductID": 3, "ProductCode": "EBZZ", "ProductTranID": "EBZZ-f90f07cdfeff820904c56696dd72e321", "GameInfoID": 698, "GameID": "80233", "GameTranID": "80238cc6c07f85144d8ade97760f2cbdbff", "TranType": "GAME_BET", "AmountReal": "-.010000000000000000", "AmountPlayableBonus": ".000000000000000000", "AmountReleasedBonus": ".000000000000000000", "BalanceReal": ".000000000000000000", "BalancePlayableBonus": ".000000000000000000", "BalanceReleasedBonus": ".000000000000000000", "RollbackTranID": null, "RollbackTranType": null }, { "BrandID": 1, "AccountTranID": "138484", "Datetime": { "date": "2019-07-31 21:26:16.037000", "timezone_type": 3, "timezone": "UTC" }, "PartyID": 1819748, "UserID": "adel2X", "Currency": "USD", "ProductID": 3, "ProductCode": "GROOVY", "ProductTranID": "Bo-f90f07cdfeff820904c56696dd72e321re", "GameInfoID": 698, "GameID": "80233", "GameTranID": "80238cc6c07f85144d8ade97760f2cbdbff", "TranType": "GAME_WIN", "AmountReal": ".000000000000000000", "AmountPlayableBonus": ".000000000000000000", "AmountReleasedBonus": ".000000000000000000", "BalanceReal": ".000000000000000000", "BalancePlayableBonus": ".000000000000000000", "BalanceReleasedBonus": ".000000000000000000", "RollbackTranID": null, "RollbackTranType": null }] }'; //convert the json in array using json_decode $json_array = json_decode($json, true); //using array_walk_recursive get all the key and value array_walk_recursive($json_array, function($item, $key){ echo $key.':'.$item.PHP_EOL; });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nQLGq
function name:  (null)
number of ops:  12
compiled vars:  !0 = $json, !1 = $json_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '%7B%0A++++%22data%22%3A+%5B%7B%0A++++++++%22BrandID%22%3A+1%2C%0A++++++++%22AccountTranID%22%3A+%22138483%22%2C%0A++++++++%22Datetime%22%3A+%7B%0A++++++++++++%22date%22%3A+%222019-07-31+21%3A26%3A15.513000%22%2C%0A++++++++++++%22timezone_type%22%3A+3%2C%0A++++++++++++%22timezone%22%3A+%22UTC%22%0A++++++++%7D%2C%0A++++++++%22PartyID%22%3A+1819748%2C%0A++++++++%22UserID%22%3A+%22adel2X%22%2C%0A++++++++%22Currency%22%3A+%22USD%22%2C%0A++++++++%22ProductID%22%3A+3%2C%0A++++++++%22ProductCode%22%3A+%22EBZZ%22%2C%0A++++++++%22ProductTranID%22%3A+%22EBZZ-f90f07cdfeff820904c56696dd72e321%22%2C%0A++++++++%22GameInfoID%22%3A+698%2C%0A++++++++%22GameID%22%3A+%2280233%22%2C%0A++++++++%22GameTranID%22%3A+%2280238cc6c07f85144d8ade97760f2cbdbff%22%2C%0A++++++++%22TranType%22%3A+%22GAME_BET%22%2C%0A++++++++%22AmountReal%22%3A+%22-.010000000000000000%22%2C%0A++++++++%22AmountPlayableBonus%22%3A+%22.000000000000000000%22%2C%0A++++++++%22AmountReleasedBonus%22%3A+%22.000000000000000000%22%2C%0A++++++++%22BalanceReal%22%3A+%22.000000000000000000%22%2C%0A++++++++%22BalancePlayableBonus%22%3A+%22.000000000000000000%22%2C%0A++++++++%22BalanceReleasedBonus%22%3A+%22.000000000000000000%22%2C%0A++++++++%22RollbackTranID%22%3A+null%2C%0A++++++++%22RollbackTranType%22%3A+null%0A++++%7D%2C+%7B%0A++++++++%22BrandID%22%3A+1%2C%0A++++++++%22AccountTranID%22%3A+%22138484%22%2C%0A++++++++%22Datetime%22%3A+%7B%0A++++++++++++%22date%22%3A+%222019-07-31+21%3A26%3A16.037000%22%2C%0A++++++++++++%22timezone_type%22%3A+3%2C%0A++++++++++++%22timezone%22%3A+%22UTC%22%0A++++++++%7D%2C%0A++++++++%22PartyID%22%3A+1819748%2C%0A++++++++%22UserID%22%3A+%22adel2X%22%2C%0A++++++++%22Currency%22%3A+%22USD%22%2C%0A++++++++%22ProductID%22%3A+3%2C%0A++++++++%22ProductCode%22%3A+%22GROOVY%22%2C%0A++++++++%22ProductTranID%22%3A+%22Bo-f90f07cdfeff820904c56696dd72e321re%22%2C%0A++++++++%22GameInfoID%22%3A+698%2C%0A++++++++%22GameID%22%3A+%2280233%22%2C%0A++++++++%22GameTranID%22%3A+%2280238cc6c07f85144d8ade97760f2cbdbff%22%2C%0A++++++++%22TranType%22%3A+%22GAME_WIN%22%2C%0A++++++++%22AmountReal%22%3A+%22.000000000000000000%22%2C%0A++++++++%22AmountPlayableBonus%22%3A+%22.000000000000000000%22%2C%0A++++++++%22AmountReleasedBonus%22%3A+%22.000000000000000000%22%2C%0A++++++++%22BalanceReal%22%3A+%22.000000000000000000%22%2C%0A++++++++%22BalancePlayableBonus%22%3A+%22.000000000000000000%22%2C%0A++++++++%22BalanceReleasedBonus%22%3A+%22.000000000000000000%22%2C%0A++++++++%22RollbackTranID%22%3A+null%2C%0A++++++++%22RollbackTranType%22%3A+null%0A++++%7D%5D%0A%7D'
   64     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
   67     6        INIT_FCALL                                               'array_walk_recursive'
          7        SEND_REF                                                 !1
          8        DECLARE_LAMBDA_FUNCTION                          ~5      [0]
   71     9        SEND_VAL                                                 ~5
   67    10        DO_ICALL                                                 
   71    11      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nQLGq
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $item, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   67     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   69     2        CONCAT                                           ~2      !1, '%3A'
          3        CONCAT                                           ~3      ~2, !0
          4        CONCAT                                           ~4      ~3, '%0A'
          5        ECHO                                                     ~4
   71     6      > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.54 ms | 1006 KiB | 15 Q