3v4l.org

run code in 500+ PHP versions simultaneously
<?php $original = [ ["a"], ["b", "c"], ]; $filtered = array_filter( $original, function ($innerArray) { return count($innerArray) >= 2; } ); print_r($filtered);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iigWQ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $original, !1 = $filtered
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    8     1        INIT_FCALL                                                   'array_filter'
    9     2        SEND_VAR                                                     !0
   10     3        DECLARE_LAMBDA_FUNCTION                              ~3      [0]
   12     4        SEND_VAL                                                     ~3
    8     5        DO_ICALL                                             $4      
          6        ASSIGN                                                       !1, $4
   15     7        INIT_FCALL                                                   'print_r'
          8        SEND_VAR                                                     !1
          9        DO_ICALL                                                     
         10      > 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/iigWQ
function name:  {closure:/in/iigWQ:10}
number of ops:  5
compiled vars:  !0 = $innerArray
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   RECV                                                 !0      
   11     1        COUNT                                                ~1      !0
          2        IS_SMALLER_OR_EQUAL                                  ~2      2, ~1
          3      > RETURN                                                       ~2
   12     4*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
222.13 ms | 2038 KiB | 15 Q