3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"a":1,"b":2,"c":3,"d":4,"e":5}'; $assoc = true; $result = json_decode ($json, $assoc); print_r($result->a) ; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IQNbX
function name:  (null)
number of ops:  12
compiled vars:  !0 = $json, !1 = $assoc, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%22a%22%3A1%2C%22b%22%3A2%2C%22c%22%3A3%2C%22d%22%3A4%2C%22e%22%3A5%7D'
    3     1        ASSIGN                                                   !1, <true>
    4     2        INIT_FCALL                                               'json_decode'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    5     7        INIT_FCALL                                               'print_r'
          8        FETCH_OBJ_R                                      ~7      !2, 'a'
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                                 
    6    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.33 ms | 1394 KiB | 17 Q