3v4l.org

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

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.75 ms | 1007 KiB | 16 Q