3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"TransactionInfo":{"Date":"06\/04\/2018","Time":"09:29 ET","TransactionCharge":{"MonetaryValue":"0.00","CurrencyCode":{}}},"ShipmentEstimate":{"CurrencyCode":"EUR","ShipmentCharges":{"TaxesAndFees":"1.7532","AdditionalInsuranceCost":"0.00","TransportationCost":"0.00","SubTotal":"1.7532"},"ProductsCharges":{"Product":{"TariffCode":"5109.90.80.00","Charges":{"Duties":"75.0021","TaxesAndFees":"0.00","VAT":"0.00","CostOfGoods":"1250.00","SubTotal":"1325.0021"}},"ProductsSubTotal":"1325.0021"},"TotalLandedCost":"1326.7553"},"SuppressQuestionIndicator":"Y"}'; $array = json_decode($json, true); echo $array['ShipmentEstimate']['ProductsCharges']['Product']['TariffCode'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2WBs6
function name:  (null)
number of ops:  12
compiled vars:  !0 = $json, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%22TransactionInfo%22%3A%7B%22Date%22%3A%2206%5C%2F04%5C%2F2018%22%2C%22Time%22%3A%2209%3A29+ET%22%2C%22TransactionCharge%22%3A%7B%22MonetaryValue%22%3A%220.00%22%2C%22CurrencyCode%22%3A%7B%7D%7D%7D%2C%22ShipmentEstimate%22%3A%7B%22CurrencyCode%22%3A%22EUR%22%2C%22ShipmentCharges%22%3A%7B%22TaxesAndFees%22%3A%221.7532%22%2C%22AdditionalInsuranceCost%22%3A%220.00%22%2C%22TransportationCost%22%3A%220.00%22%2C%22SubTotal%22%3A%221.7532%22%7D%2C%22ProductsCharges%22%3A%7B%22Product%22%3A%7B%22TariffCode%22%3A%225109.90.80.00%22%2C%22Charges%22%3A%7B%22Duties%22%3A%2275.0021%22%2C%22TaxesAndFees%22%3A%220.00%22%2C%22VAT%22%3A%220.00%22%2C%22CostOfGoods%22%3A%221250.00%22%2C%22SubTotal%22%3A%221325.0021%22%7D%7D%2C%22ProductsSubTotal%22%3A%221325.0021%22%7D%2C%22TotalLandedCost%22%3A%221326.7553%22%7D%2C%22SuppressQuestionIndicator%22%3A%22Y%22%7D'
    4     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    6     6        FETCH_DIM_R                                      ~5      !1, 'ShipmentEstimate'
          7        FETCH_DIM_R                                      ~6      ~5, 'ProductsCharges'
          8        FETCH_DIM_R                                      ~7      ~6, 'Product'
          9        FETCH_DIM_R                                      ~8      ~7, 'TariffCode'
         10        ECHO                                                     ~8
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.4 ms | 1010 KiB | 14 Q