3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $serials = [ [ "foo" => "", "bar" => "" ], [ "foo" => "", "bar" => "" ], [ "foo" => "", "bar" => "" ], [ "foo" => "", "bar" => "" ], [ "foo" => "", "bar" => "" ], [ "foo" => "Don't remove", "bar" => "me!" ] ]; $filteredArray = array_filter ($serials, function ($item) { return !empty(array_values($item)); }); var_dump($filteredArray);
based on empXC
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 62) Position 1 = -2
filename:       /in/MO9C7
function name:  (null)
number of ops:  11
compiled vars:  !0 = $serials, !1 = $filteredArray
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   7     0  E >   ASSIGN                                                   !0, <array>
  30     1        INIT_FCALL                                               'array_filter'
         2        SEND_VAR                                                 !0
         3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FMO9C70x7f638968a1ce'
  32     4        SEND_VAL                                                 ~3
         5        DO_ICALL                                         $4      
         6        ASSIGN                                                   !1, $4
  34     7        INIT_FCALL                                               'var_dump'
         8        SEND_VAR                                                 !1
         9        DO_ICALL                                                 
        10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FMO9C70x7f638968a1ce:
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 62) Position 1 = -2
filename:       /in/MO9C7
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $item
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  30     0  E >   RECV                                             !0      
  31     1        INIT_FCALL                                               'array_values'
         2        SEND_VAR                                                 !0
         3        DO_ICALL                                         $1      
         4        BOOL_NOT                                         ~2      $1
         5        BOOL_NOT                                         ~3      ~2
         6      > RETURN                                                   ~3
  32     7*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FMO9C70x7f638968a1ce

Generated using Vulcan Logic Dumper, using php 7.3.0