3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = '[{"id":90047,"value":"Straatnaam"},{"id":41971,"value":"Postcode"},{"id":54178,"value":"Plaats"},{"id":64308,"value":"Radio button"}]'; $json = json_decode($data,true); echo $json[0]['value']; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RQ1u9
function name:  (null)
number of ops:  10
compiled vars:  !0 = $data, !1 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%5B%7B%22id%22%3A90047%2C%22value%22%3A%22Straatnaam%22%7D%2C%7B%22id%22%3A41971%2C%22value%22%3A%22Postcode%22%7D%2C%7B%22id%22%3A54178%2C%22value%22%3A%22Plaats%22%7D%2C%7B%22id%22%3A64308%2C%22value%22%3A%22Radio+button%22%7D%5D'
    3     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    4     6        FETCH_DIM_R                                      ~5      !1, 0
          7        FETCH_DIM_R                                      ~6      ~5, 'value'
          8        ECHO                                                     ~6
    5     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.15 ms | 1443 KiB | 14 Q