3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = [ 'Bank' => ['name' => 'Bank', 'status' => 1, 'enable_rcb' => 1], 'Cod' => ['name' => 'Cod', 'status' => 1, 'enable_rcb' => 0], 'Lite' => ['name' => 'Lite', 'status' => 0, 'enable_rcb' => 0] ]; $filtered = array_filter($arr, static function ($entry) { return $entry['status'] === 1; }); $names = array_column($filtered, 'name'); print_r($names);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Nhc0P
function name:  (null)
number of ops:  16
compiled vars:  !0 = $arr, !1 = $filtered, !2 = $names
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
    8     1        INIT_FCALL                                                   'array_filter'
          2        SEND_VAR                                                     !0
          3        DECLARE_LAMBDA_FUNCTION                              ~4      [0]
   10     4        SEND_VAL                                                     ~4
    8     5        DO_ICALL                                             $5      
          6        ASSIGN                                                       !1, $5
   12     7        INIT_FCALL                                                   'array_column'
          8        SEND_VAR                                                     !1
          9        SEND_VAL                                                     'name'
         10        DO_ICALL                                             $7      
         11        ASSIGN                                                       !2, $7
   14    12        INIT_FCALL                                                   'print_r'
         13        SEND_VAR                                                     !2
         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/Nhc0P
function name:  {closure:/in/Nhc0P:8}
number of ops:  5
compiled vars:  !0 = $entry
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   RECV                                                 !0      
    9     1        FETCH_DIM_R                                          ~1      !0, 'status'
          2        IS_IDENTICAL                                         ~2      ~1, 1
          3      > RETURN                                                       ~2
   10     4*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.77 ms | 3270 KiB | 16 Q