3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'one' => [20,0,40,0,60], 'two' => [50], 'three' => [0, 0, 0, 0], 'four' => [10, 5], 'five' => [0], 'six' => [null], 'seven' => [false], 'eight' => ["0"], ]; var_export( array_filter($array, fn($row) => !in_array(0, $row, true)) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mfuDp
function name:  (null)
number of ops:  10
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   14     1        INIT_FCALL                                               'var_export'
   15     2        INIT_FCALL                                               'array_filter'
          3        SEND_VAR                                                 !0
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FmfuDp%3A15%240'
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                                 
   16     9      > RETURN                                                   1

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.65 ms | 1395 KiB | 19 Q