3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.42 ms | 1404 KiB | 15 Q