3v4l.org

run code in 500+ PHP versions simultaneously
<?php $lots = array(); $lots["lots"][] = array("Id" => 32932, "Type" => "G", "x" => 1, "y" => 2, "z" => 3); $lots["lots"][] = array("Id" => 32933, "Type" => "R", "x" => 4, "y" => 5, "z" => 6); $json = json_encode($lots); echo $json;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9UlGX
function name:  (null)
number of ops:  13
compiled vars:  !0 = $lots, !1 = $json
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    5     1        FETCH_DIM_W                                          $3      !0, 'lots'
          2        ASSIGN_DIM                                                   $3
          3        OP_DATA                                                      <array>
    6     4        FETCH_DIM_W                                          $5      !0, 'lots'
          5        ASSIGN_DIM                                                   $5
          6        OP_DATA                                                      <array>
    8     7        INIT_FCALL                                                   'json_encode'
          8        SEND_VAR                                                     !0
          9        DO_ICALL                                             $7      
         10        ASSIGN                                                       !1, $7
   10    11        ECHO                                                         !1
   11    12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
144.86 ms | 1894 KiB | 14 Q