3v4l.org

run code in 300+ PHP versions simultaneously
<?php $response = array(); $response['block_names'] = array("getdata"); $response['type'] = "show_block"; $response['title'] = "go"; $response['set_attributes'] = new \stdClass(); $response['set_attributes']->apikey = '12332141234123412341234'; var_dump(json_encode($response));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GDMKT
function name:  (null)
number of ops:  21
compiled vars:  !0 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0, 'block_names'
          2        OP_DATA                                                  <array>
    5     3        ASSIGN_DIM                                               !0, 'type'
          4        OP_DATA                                                  'show_block'
    6     5        ASSIGN_DIM                                               !0, 'title'
          6        OP_DATA                                                  'go'
    8     7        NEW                                              $6      'stdClass'
          8        DO_FCALL                                      0          
          9        ASSIGN_DIM                                               !0, 'set_attributes'
         10        OP_DATA                                                  $6
    9    11        FETCH_DIM_W                                      $8      !0, 'set_attributes'
         12        ASSIGN_OBJ                                               $8, 'apikey'
         13        OP_DATA                                                  '12332141234123412341234'
   11    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'json_encode'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $10     
         18        SEND_VAR                                                 $10
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.21 ms | 1395 KiB | 17 Q