3v4l.org

run code in 300+ PHP versions simultaneously
<?php $extra = [ 'affiliate_id' => '2222', 'description' => 'description', 'order_hash_public' => 'orderHashPublic', ]; $socialAuthItem['login'] = '1234sflfkjasdf'; $socialAuthItem['vterm_id'] = 'VKGolosa'; $extra['social_auth'][] = $socialAuthItem; echo json_encode(['extra' => $extra], JSON_UNESCAPED_UNICODE);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Vbl4P
function name:  (null)
number of ops:  15
compiled vars:  !0 = $extra, !1 = $socialAuthItem
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        ASSIGN_DIM                                               !1, 'login'
          2        OP_DATA                                                  '1234sflfkjasdf'
   11     3        ASSIGN_DIM                                               !1, 'vterm_id'
          4        OP_DATA                                                  'VKGolosa'
   12     5        FETCH_DIM_W                                      $5      !0, 'social_auth'
          6        ASSIGN_DIM                                               $5
          7        OP_DATA                                                  !1
   16     8        INIT_FCALL                                               'json_encode'
          9        INIT_ARRAY                                       ~7      !0, 'extra'
         10        SEND_VAL                                                 ~7
         11        SEND_VAL                                                 256
         12        DO_ICALL                                         $8      
         13        ECHO                                                     $8
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.95 ms | 1398 KiB | 15 Q