3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ '1201' => ['docUpload' => 'html dom.txt'], '1202' => ['docUpload' => 'PYTHON AND DJANGO ARE HUGE IN FINTECH.txt'], '1203' => ['docUpload' => ''], ]; $new = array_column($array, 'docUpload'); $new = array_combine(array_keys($array), $new); print_r($new);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lG4KO
function name:  (null)
number of ops:  18
compiled vars:  !0 = $array, !1 = $new
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'array_column'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'docUpload'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
   10     6        INIT_FCALL                                               'array_combine'
          7        INIT_FCALL                                               'array_keys'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $6      
         13        ASSIGN                                                   !1, $6
   11    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.18 ms | 1007 KiB | 17 Q