3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = (object)array( 'Answer' => (object)array('Sucess'=>'Yup'), 'List' => array( (object) array('id' => 1, 'Description' => 'hello'), ) ); print json_encode($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IKcSG
function name:  (null)
number of ops:  12
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          8  ~1      <array>
          1        INIT_ARRAY                                       ~2      ~1, 'Answer'
    5     2        CAST                                          8  ~3      <array>
          3        INIT_ARRAY                                       ~4      ~3
          4        ADD_ARRAY_ELEMENT                                ~2      ~4, 'List'
          5        CAST                                          8  ~5      ~2
    2     6        ASSIGN                                                   !0, ~5
    8     7        INIT_FCALL                                               'json_encode'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $7      
         10        ECHO                                                     $7
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.74 ms | 939 KiB | 16 Q