3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr =[ 0 => [ 'id' => 11, 'title' => 't1' ], 1 => [ 'id' => 12, 'title' => 't2' ] ]; $fianl_array = array_combine(array_column($arr,'id'),$arr); print_r($fianl_array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EDPpj
function name:  (null)
number of ops:  14
compiled vars:  !0 = $arr, !1 = $fianl_array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   14     1        INIT_FCALL                                                   'array_combine'
          2        INIT_FCALL                                                   'array_column'
          3        SEND_VAR                                                     !0
          4        SEND_VAL                                                     'id'
          5        DO_ICALL                                             $3      
          6        SEND_VAR                                                     $3
          7        SEND_VAR                                                     !0
          8        DO_ICALL                                             $4      
          9        ASSIGN                                                       !1, $4
   15    10        INIT_FCALL                                                   'print_r'
         11        SEND_VAR                                                     !1
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.82 ms | 1789 KiB | 16 Q