3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = json_decode('{"questions": [{"q":"Would you say the banana looked like an alpaca?", "answers":["Yes", "No", "More like a rhino"]}]}'); echo $str["questions"];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZN0C6
function name:  (null)
number of ops:  7
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%7B%22questions%22%3A+%5B%7B%22q%22%3A%22Would+you+say+the+banana+looked+like+an+alpaca%3F%22%2C+%22answers%22%3A%5B%22Yes%22%2C+%22No%22%2C+%22More+like+a+rhino%22%5D%7D%5D%7D'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    4     4        FETCH_DIM_R                                      ~3      !0, 'questions'
          5        ECHO                                                     ~3
          6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.17 ms | 1394 KiB | 15 Q