3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.1 ms | 1394 KiB | 15 Q