3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ [ "Some key here" => 26542973, "generated key" => "John", "who knows what key" => 10 ], [ "Some key here" => "123", "generated key" => "", "who knows what key" => "" ], ]; $arr = array_filter($arr, function($val){ return implode("", $val) != ""; }); print_r($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2QddO
function name:  (null)
number of ops:  11
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   15     1        INIT_FCALL                                               'array_filter'
          2        SEND_VAR                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F2QddO%3A15%240'
   17     4        SEND_VAL                                                 ~2
          5        DO_ICALL                                         $3      
   15     6        ASSIGN                                                   !0, $3
   18     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F2QddO%3A15%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2QddO
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
   16     1        INIT_FCALL                                               'implode'
          2        SEND_VAL                                                 ''
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        IS_NOT_EQUAL                                     ~2      $1, ''
          6      > RETURN                                                   ~2
   17     7*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F2QddO%3A15%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.67 ms | 1398 KiB | 20 Q