3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [['key' => 5], ['key' => 6], ['key' => 7]]; array_walk_recursive($array, function(&$item) {null;}); $result = array_column($array, null, 'key'); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PNgH5
function name:  (null)
number of ops:  16
compiled vars:  !0 = $array, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'array_walk_recursive'
          2        SEND_REF                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                          ~3      [0]
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'array_column'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 null
          9        SEND_VAL                                                 'key'
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !1, $5
    7    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > 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/PNgH5
function name:  {closure}
number of ops:  2
compiled vars:  !0 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.67 ms | 999 KiB | 16 Q