3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = json_decode('[{"Status":"FAILED","Message":"Trasaction Already Exist"}]', TRUE); $status=$json[0]["Status"]; $Message=$json[0]["Message"]; echo $Message; print_r($json);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/94BmB
function name:  (null)
number of ops:  16
compiled vars:  !0 = $json, !1 = $status, !2 = $Message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%5B%7B%22Status%22%3A%22FAILED%22%2C%22Message%22%3A%22Trasaction+Already+Exist%22%7D%5D'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    3     5        FETCH_DIM_R                                      ~5      !0, 0
          6        FETCH_DIM_R                                      ~6      ~5, 'Status'
          7        ASSIGN                                                   !1, ~6
    4     8        FETCH_DIM_R                                      ~8      !0, 0
          9        FETCH_DIM_R                                      ~9      ~8, 'Message'
         10        ASSIGN                                                   !2, ~9
    5    11        ECHO                                                     !2
    6    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.11 ms | 1399 KiB | 17 Q