3v4l.org

run code in 300+ PHP versions simultaneously
<?php $to_send = array('cep' => '90550-004'); $to_send['produtos'][] = array( 'idgrade' => "2", 'qtd' => "2", ); echo json_encode($to_send); //print_r(http_build_query($to_send));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PEUDc
function name:  (null)
number of ops:  9
compiled vars:  !0 = $to_send
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        FETCH_DIM_W                                      $2      !0, 'produtos'
          2        ASSIGN_DIM                                               $2
    4     3        OP_DATA                                                  <array>
    7     4        INIT_FCALL                                               'json_encode'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        ECHO                                                     $4
    8     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.44 ms | 1394 KiB | 15 Q