3v4l.org

run code in 500+ PHP versions simultaneously
<?php $json = '{"1455260079":"Tracking : #34567808765098767 USPS","1455260723":"Delivered","1455261541":"Received Back"}'; $json_array = json_decode($json, true); var_dump($json_array); print_r($json_array); echo $json_array["1455260079"]."\n"; $json_obj = json_decode($json); $json_array = (array) $json_obj; var_dump($json_array); print_r($json_array); echo $json_array["1455260079"]."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PULrp
function name:  (null)
number of ops:  31
compiled vars:  !0 = $json, !1 = $json_array, !2 = $json_obj
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, '%7B%221455260079%22%3A%22Tracking+%3A+%2334567808765098767+USPS%22%2C%221455260723%22%3A%22Delivered%22%2C%221455261541%22%3A%22Received+Back%22%7D'
    4     1        INIT_FCALL                                                   'json_decode'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     <true>
          4        DO_ICALL                                             $4      
          5        ASSIGN                                                       !1, $4
    5     6        INIT_FCALL                                                   'var_dump'
          7        SEND_VAR                                                     !1
          8        DO_ICALL                                                     
    6     9        INIT_FCALL                                                   'print_r'
         10        SEND_VAR                                                     !1
         11        DO_ICALL                                                     
    7    12        FETCH_DIM_R                                          ~8      !1, 1455260079
         13        CONCAT                                               ~9      ~8, '%0A'
         14        ECHO                                                         ~9
    9    15        INIT_FCALL                                                   'json_decode'
         16        SEND_VAR                                                     !0
         17        DO_ICALL                                             $10     
         18        ASSIGN                                                       !2, $10
   10    19        CAST                                              7  ~12     !2
         20        ASSIGN                                                       !1, ~12
   11    21        INIT_FCALL                                                   'var_dump'
         22        SEND_VAR                                                     !1
         23        DO_ICALL                                                     
   12    24        INIT_FCALL                                                   'print_r'
         25        SEND_VAR                                                     !1
         26        DO_ICALL                                                     
   14    27        FETCH_DIM_R                                          ~16     !1, 1455260079
         28        CONCAT                                               ~17     ~16, '%0A'
         29        ECHO                                                         ~17
         30      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
212.18 ms | 2620 KiB | 16 Q