3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'a' => [ 'name' => "Name 1", 'age' => "99", 'add' => "" ], 'b' => [ 'name' => "Name 2", 'age' => "99", 'add' => "Add2" ], 'c' => [ 'name' => "Name 3", 'age' => "99", 'add' => "Add3" ], 'd' => [ 'name' => "", 'age' => "", 'add' => "Add4" ] ]; var_export( array_filter( array_map( fn($row) => array_keys( array_filter( $row, fn($v) => !strlen($v) ) ), $array ) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K7jtH
function name:  (null)
number of ops:  14
compiled vars:  !0 = $array, !1 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   26     1        INIT_FCALL                                               'var_export'
   27     2        INIT_FCALL                                               'array_filter'
   28     3        INIT_FCALL                                               'array_map'
   29     4        DECLARE_LAMBDA_FUNCTION                          ~3      [0]
          5        BIND_LEXICAL                                             ~3, !1
   34     6        SEND_VAL                                                 ~3
   35     7        SEND_VAR                                                 !0
   28     8        DO_ICALL                                         $4      
   35     9        SEND_VAR                                                 $4
   27    10        DO_ICALL                                         $5      
   35    11        SEND_VAR                                                 $5
   26    12        DO_ICALL                                                 
   38    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/K7jtH
function name:  {closure}
number of ops:  12
compiled vars:  !0 = $row, !1 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
          2        INIT_FCALL                                               'array_keys'
   30     3        INIT_FCALL                                               'array_filter'
   31     4        SEND_VAR                                                 !0
   32     5        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
   33     6        SEND_VAL                                                 ~2
   30     7        DO_ICALL                                         $3      
   33     8        SEND_VAR                                                 $3
   29     9        DO_ICALL                                         $4      
   33    10      > RETURN                                                   $4
   34    11*     > RETURN                                                   null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K7jtH
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   32     0  E >   RECV                                             !0      
          1        STRLEN                                           ~1      !0
          2        BOOL_NOT                                         ~2      ~1
          3      > RETURN                                                   ~2
   33     4*     > RETURN                                                   null

End of Dynamic Function 0

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.7 ms | 1009 KiB | 17 Q