3v4l.org

run code in 300+ PHP versions simultaneously
<?php $decode = json_decode('{"droplet":{"id":3038902}}',true); print_r($decode['droplet']['id']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/57ENb
function name:  (null)
number of ops:  11
compiled vars:  !0 = $decode
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%7B%22droplet%22%3A%7B%22id%22%3A3038902%7D%7D'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    4     5        INIT_FCALL                                               'print_r'
          6        FETCH_DIM_R                                      ~3      !0, 'droplet'
          7        FETCH_DIM_R                                      ~4      ~3, 'id'
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.73 ms | 1385 KiB | 17 Q