3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrCol = array(); $arrCol[0] = 'text'; $arrCol[1] = 'select'; $arrCol[2] = 'label'; $arrCol[8] = 'raio'; $arrCol[9] = 'text'; var_dump(json_encode($arrCol));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d0O49
function name:  (null)
number of ops:  18
compiled vars:  !0 = $arrCol
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN_DIM                                               !0, 0
          2        OP_DATA                                                  'text'
    4     3        ASSIGN_DIM                                               !0, 1
          4        OP_DATA                                                  'select'
    5     5        ASSIGN_DIM                                               !0, 2
          6        OP_DATA                                                  'label'
    6     7        ASSIGN_DIM                                               !0, 8
          8        OP_DATA                                                  'raio'
    7     9        ASSIGN_DIM                                               !0, 9
         10        OP_DATA                                                  'text'
   10    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'json_encode'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.28 ms | 1394 KiB | 17 Q