3v4l.org

run code in 300+ PHP versions simultaneously
<?php $record = new stdclass; $record->working = 1; $record->intervals[] = array(1,2,3,4); $records[0] = $record; $row = json_encode($records); echo $row;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j2gPY
function name:  (null)
number of ops:  16
compiled vars:  !0 = $record, !1 = $records, !2 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'stdclass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        ASSIGN_OBJ                                               !0, 'working'
          4        OP_DATA                                                  1
    5     5        FETCH_OBJ_W                                      $7      !0, 'intervals'
          6        ASSIGN_DIM                                               $7
          7        OP_DATA                                                  <array>
    6     8        ASSIGN_DIM                                               !1, 0
          9        OP_DATA                                                  !0
    7    10        INIT_FCALL                                               'json_encode'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $10     
         13        ASSIGN                                                   !2, $10
    8    14        ECHO                                                     !2
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.56 ms | 1394 KiB | 15 Q