3v4l.org

run code in 300+ PHP versions simultaneously
<?php $output = array(); $output["status"] = 200; $output["error"] = false; $data = array(); $data[] = array( "id_kab" => "56", "id_prov" => "1", "kd_kab" => "CGK10000" ); $output["data"] = $data; echo json_encode($output); exit; echo '<pre>'; print_r($output); echo '</pre>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/WBtG1
function name:  (null)
number of ops:  21
compiled vars:  !0 = $output, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0, 'status'
          2        OP_DATA                                                  200
    5     3        ASSIGN_DIM                                               !0, 'error'
          4        OP_DATA                                                  <false>
    7     5        ASSIGN                                                   !1, <array>
    8     6        ASSIGN_DIM                                               !1
    9     7        OP_DATA                                                  <array>
   14     8        ASSIGN_DIM                                               !0, 'data'
          9        OP_DATA                                                  !1
   15    10        INIT_FCALL                                               'json_encode'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $8      
         13        ECHO                                                     $8
         14      > EXIT                                                     
   17    15*       ECHO                                                     '%3Cpre%3E'
   18    16*       INIT_FCALL                                               'print_r'
         17*       SEND_VAR                                                 !0
         18*       DO_ICALL                                                 
   19    19*       ECHO                                                     '%3C%2Fpre%3E'
         20*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.1 ms | 998 KiB | 15 Q