3v4l.org

run code in 500+ PHP versions simultaneously
<?php $result = json_decode('[ { "birth_place": "Administrasi Jakarta Barat", "jumlah_data_user": "3", "id": "716,764,922", "name": "Elvina Nuraini,Rina Kezia Novitasari,Viktor Firmansyah M.Pd", "birth_date": "1975-08-28,1988-06-07,1989-05-13", "gender": "female,female,male" }, { "birth_place": "Administrasi Jakarta Pusat", "jumlah_data_user": "2", "id": "993,866", "name": "Mursinin Banawa Marbun M.Pd,Ibrahim Gunawan", "birth_date": "1991-12-27,1995-01-01", "gender": "male,male" } ]', true); var_export( array_map( fn($row) => [ 'birth_place' => $row['birth_place'], 'jumlah_data_user' => $row['jumlah_data_user'], 'users' => array_map( fn(...$cols) => array_combine(['id', 'name', 'birth_date', 'gender'], $cols), explode(',', $row['id']), explode(',', $row['name']), explode(',', $row['birth_date']), explode(',', $row['gender']) ) ], $result ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OdcHl
function name:  (null)
number of ops:  15
compiled vars:  !0 = $result, !1 = $cols
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'json_decode'
          1        SEND_VAL                                                     '%5B%0A++++++++++%7B%0A+++++++++++%22birth_place%22%3A+%22Administrasi+Jakarta+Barat%22%2C%0A+++++++++++%22jumlah_data_user%22%3A+%223%22%2C%0A+++++++++++%22id%22%3A+%22716%2C764%2C922%22%2C%0A+++++++++++%22name%22%3A+%22Elvina+Nuraini%2CRina+Kezia+Novitasari%2CViktor+Firmansyah+M.Pd%22%2C%0A+++++++++++%22birth_date%22%3A+%221975-08-28%2C1988-06-07%2C1989-05-13%22%2C%0A+++++++++++%22gender%22%3A+%22female%2Cfemale%2Cmale%22%0A++++++++++%7D%2C%0A++++++++++%7B%0A+++++++++++%22birth_place%22%3A+%22Administrasi+Jakarta+Pusat%22%2C%0A+++++++++++%22jumlah_data_user%22%3A+%222%22%2C%0A+++++++++++%22id%22%3A+%22993%2C866%22%2C%0A+++++++++++%22name%22%3A+%22Mursinin+Banawa+Marbun+M.Pd%2CIbrahim+Gunawan%22%2C%0A+++++++++++%22birth_date%22%3A+%221991-12-27%2C1995-01-01%22%2C%0A+++++++++++%22gender%22%3A+%22male%2Cmale%22%0A++++++++++%7D%0A+++++++++%5D'
   20     2        SEND_VAL                                                     <true>
    3     3        DO_ICALL                                             $2      
          4        ASSIGN                                                       !0, $2
   22     5        INIT_FCALL                                                   'var_export'
   23     6        INIT_FCALL                                                   'array_map'
   24     7        DECLARE_LAMBDA_FUNCTION                              ~4      [0]
          8        BIND_LEXICAL                                                 ~4, !1
   34     9        SEND_VAL                                                     ~4
   35    10        SEND_VAR                                                     !0
   23    11        DO_ICALL                                             $5      
   35    12        SEND_VAR                                                     $5
   22    13        DO_ICALL                                                     
   37    14      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OdcHl
function name:  {closure:/in/OdcHl:24}
number of ops:  37
compiled vars:  !0 = $row, !1 = $cols
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   24     0  E >   RECV                                                 !0      
          1        BIND_STATIC                                                  !1
   25     2        FETCH_DIM_R                                          ~2      !0, 'birth_place'
          3        INIT_ARRAY                                           ~3      ~2, 'birth_place'
   26     4        FETCH_DIM_R                                          ~4      !0, 'jumlah_data_user'
          5        ADD_ARRAY_ELEMENT                                    ~3      ~4, 'jumlah_data_user'
   27     6        INIT_FCALL                                                   'array_map'
   28     7        DECLARE_LAMBDA_FUNCTION                              ~5      [0]
          8        SEND_VAL                                                     ~5
   29     9        INIT_FCALL                                                   'explode'
         10        SEND_VAL                                                     '%2C'
         11        FETCH_DIM_R                                          ~6      !0, 'id'
         12        SEND_VAL                                                     ~6
         13        DO_ICALL                                             $7      
         14        SEND_VAR                                                     $7
   30    15        INIT_FCALL                                                   'explode'
         16        SEND_VAL                                                     '%2C'
         17        FETCH_DIM_R                                          ~8      !0, 'name'
         18        SEND_VAL                                                     ~8
         19        DO_ICALL                                             $9      
         20        SEND_VAR                                                     $9
   31    21        INIT_FCALL                                                   'explode'
         22        SEND_VAL                                                     '%2C'
         23        FETCH_DIM_R                                          ~10     !0, 'birth_date'
         24        SEND_VAL                                                     ~10
         25        DO_ICALL                                             $11     
         26        SEND_VAR                                                     $11
   32    27        INIT_FCALL                                                   'explode'
         28        SEND_VAL                                                     '%2C'
         29        FETCH_DIM_R                                          ~12     !0, 'gender'
         30        SEND_VAL                                                     ~12
         31        DO_ICALL                                             $13     
         32        SEND_VAR                                                     $13
   27    33        DO_ICALL                                             $14     
   32    34        ADD_ARRAY_ELEMENT                                    ~3      $14, 'users'
         35      > RETURN                                                       ~3
   34    36*     > RETURN                                                       null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OdcHl
function name:  {closure:{closure:/in/OdcHl:24}:28}
number of ops:  7
compiled vars:  !0 = $cols
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   28     0  E >   RECV_VARIADIC                                        !0      
          1        INIT_FCALL                                                   'array_combine'
          2        SEND_VAL                                                     <array>
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $1      
          5      > RETURN                                                       $1
          6*     > RETURN                                                       null

End of Dynamic Function 0

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.46 ms | 1902 KiB | 18 Q