3v4l.org

run code in 300+ PHP versions simultaneously
<?php $struct = [ 'a1' => [ 'atr' => 'atr_a1' , 'form' => 'form_a1'], 'a1_2' => [ 'atr' => 'atr_a1' , 'form' => 'form_a1_2'], 'a1_3' => [ 'atr' => 'atr_a1_2', 'form' => 'form_a1'], 'b1' => [ 'atr' => 'atr_b1'], 'c1' => [ 'form' => 'form_c1'], 'c1' => [ 'atr' => null, 'form' => 'form_c1'], ]; var_dump(array_column(array_filter($struct, static function (array $s): bool { return $s['atr'] && $s['form']; }), 'atr', 'form'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MAnK7
function name:  (null)
number of ops:  15
compiled vars:  !0 = $struct
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'array_column'
          3        INIT_FCALL                                               'array_filter'
          4        SEND_VAR                                                 !0
          5        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FMAnK7%3A12%240'
   15     6        SEND_VAL                                                 ~2
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        SEND_VAL                                                 'atr'
         10        SEND_VAL                                                 'form'
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FMAnK7%3A12%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/MAnK7
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   14     1        FETCH_DIM_R                                      ~1      !0, 'atr'
          2      > JMPZ_EX                                          ~1      ~1, ->5
          3    >   FETCH_DIM_R                                      ~2      !0, 'form'
          4        BOOL                                             ~1      ~2
          5    >   VERIFY_RETURN_TYPE                                       ~1
          6      > RETURN                                                   ~1
   15     7*       VERIFY_RETURN_TYPE                                       
          8*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FMAnK7%3A12%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.24 ms | 1395 KiB | 19 Q