3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ ['name' => 'name', 'value' => 'Naomi'], ['name' => 'password', 'value' => 'test123456'], ['name' => 'email', 'value' => 'naomitest@gmail.com'], ['name' => 'code', 'value' => 'test123456@test123456'], ['name' => 'phone', 'value' => 423523545435] ]; $data = new ArrayObject( array_combine( array_column($data, 'name'), array_column($data, 'value') ) ); $data->setFlags(ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_PROPS); echo $data->name; // Naomi echo $data['name']; // Naomi
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oBbd0
function name:  (null)
number of ops:  25
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   10     1        NEW                                              $2      'ArrayObject'
   11     2        INIT_FCALL                                               'array_combine'
   12     3        INIT_FCALL                                               'array_column'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 'name'
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
   13     8        INIT_FCALL                                               'array_column'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'value'
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
   11    13        DO_ICALL                                         $5      
   13    14        SEND_VAR_NO_REF_EX                                       $5
   10    15        DO_FCALL                                      0          
         16        ASSIGN                                                   !0, $2
   16    17        INIT_METHOD_CALL                                         !0, 'setFlags'
         18        SEND_VAL_EX                                              3
         19        DO_FCALL                                      0          
   18    20        FETCH_OBJ_R                                      ~9      !0, 'name'
         21        ECHO                                                     ~9
   19    22        FETCH_DIM_R                                      ~10     !0, 'name'
         23        ECHO                                                     ~10
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.73 ms | 1437 KiB | 15 Q