3v4l.org

run code in 300+ PHP versions simultaneously
<?php $extra = []; $extra['social_auth'] = []; $a = []; $a['login'] = '1234sflfkjasdf'; $a['vterm_id'] = 'VKGolosa'; $extra['social_auth'][] = $a; 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/A51i1
function name:  (null)
number of ops:  18
compiled vars:  !0 = $extra, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0, 'social_auth'
          2        OP_DATA                                                  <array>
    6     3        ASSIGN                                                   !1, <array>
    7     4        ASSIGN_DIM                                               !1, 'login'
          5        OP_DATA                                                  '1234sflfkjasdf'
    8     6        ASSIGN_DIM                                               !1, 'vterm_id'
          7        OP_DATA                                                  'VKGolosa'
    9     8        FETCH_DIM_W                                      $7      !0, 'social_auth'
          9        ASSIGN_DIM                                               $7
         10        OP_DATA                                                  !1
   12    11        INIT_FCALL                                               'json_encode'
         12        INIT_ARRAY                                       ~9      !0, 'extra'
         13        SEND_VAL                                                 ~9
         14        SEND_VAL                                                 256
         15        DO_ICALL                                         $10     
         16        ECHO                                                     $10
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.57 ms | 1398 KiB | 15 Q