3v4l.org

run code in 300+ PHP versions simultaneously
<?php $object = json_decode('{"200": true}'); $data = get_object_vars($object); $data['200'] = false; echo json_encode($data, JSON_PRETTY_PRINT); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LSCU8
function name:  (null)
number of ops:  16
compiled vars:  !0 = $object, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%7B%22200%22%3A+true%7D'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        INIT_FCALL                                               'get_object_vars'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    4     8        ASSIGN_DIM                                               !1, 200
          9        OP_DATA                                                  <false>
    5    10        INIT_FCALL                                               'json_encode'
         11        SEND_VAR                                                 !1
         12        SEND_VAL                                                 128
         13        DO_ICALL                                         $7      
         14        ECHO                                                     $7
    7    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.13 ms | 1394 KiB | 19 Q