3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $rows = array('test', 'test2'); $rows = (object) array('lista' => $rows); echo json_encode($rows);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5oOYM
function name:  (null)
number of ops:  9
compiled vars:  !0 = $rows
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_ARRAY                                       ~2      !0, 'lista'
          2        CAST                                          8  ~3      ~2
          3        ASSIGN                                                   !0, ~3
    9     4        INIT_FCALL                                               'json_encode'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        ECHO                                                     $5
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.31 ms | 1394 KiB | 15 Q