3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json='{ "id": "number12345", "model": "324", "discount": [], "note": [], "quantity": "2", "addresses": [ { "first": [ { "type": "billing", "name": "Jo", "number": "01" }, { "type": "shipping", "name": "Susuan", "number": "03" } ] }, { "seconde": [ { "type": "billing", "name": "Jony", "number": "02" }, { "type": "shipping", "name": "Ladye", "number": "05" } ] } ] }'; $data = json_decode($json); print_r($data); #var_dump($data->addresses->first);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3OO9h
function name:  (null)
number of ops:  9
compiled vars:  !0 = $json, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%0A++++%22id%22%3A+%22number12345%22%2C%0A++++%22model%22%3A+%22324%22%2C%0A++++%22discount%22%3A+%5B%5D%2C%0A++++%22note%22%3A+%5B%5D%2C%0A++++%22quantity%22%3A+%222%22%2C%0A++++%22addresses%22%3A+%5B%0A++++++++%7B%0A++++++++++++%22first%22%3A+%5B%0A++++++++++++++++%7B%0A++++++++++++++++++++%22type%22%3A+%22billing%22%2C%0A++++++++++++++++++++%22name%22%3A+%22Jo%22%2C%0A++++++++++++++++++++%22number%22%3A+%2201%22%0A++++++++++++++++%7D%2C%0A++++++++++++++++%7B%0A++++++++++++++++++++%22type%22%3A+%22shipping%22%2C%0A++++++++++++++++++++%22name%22%3A+%22Susuan%22%2C%0A++++++++++++++++++++%22number%22%3A+%2203%22%0A++++++++++++++++%7D%0A++++++++++++%5D%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++++%22seconde%22%3A+%5B%0A++++++++++++++++%7B%0A++++++++++++++++++++%22type%22%3A+%22billing%22%2C%0A++++++++++++++++++++%22name%22%3A+%22Jony%22%2C%0A++++++++++++++++++++%22number%22%3A+%2202%22%0A++++++++++++++++%7D%2C%0A++++++++++++++++%7B%0A++++++++++++++++++++%22type%22%3A+%22shipping%22%2C%0A++++++++++++++++++++%22name%22%3A+%22Ladye%22%2C%0A++++++++++++++++++++%22number%22%3A+%2205%22%0A++++++++++++++++%7D%0A++++++++++++%5D%0A++++++++%7D%0A++++%5D%0A%7D'
   41     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   42     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
   43     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.4 ms | 1395 KiB | 17 Q