3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array(); $data["int"] = 1; $int = 0; $data["string"] = "".$int; print json_encode($data); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tH3FL
function name:  (null)
number of ops:  12
compiled vars:  !0 = $data, !1 = $int
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN_DIM                                               !0, 'int'
          2        OP_DATA                                                  1
    4     3        ASSIGN                                                   !1, 0
    5     4        CONCAT                                           ~6      '', !1
          5        ASSIGN_DIM                                               !0, 'string'
          6        OP_DATA                                                  ~6
    6     7        INIT_FCALL                                               'json_encode'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $7      
         10        ECHO                                                     $7
    7    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.33 ms | 1394 KiB | 15 Q