3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = "uma palavra qualquer"; $retorno = array_keys( array_filter( $meuArrayMultidimensional, function ($value) use ($search) { return (stripos($value['colunaDoArray'], $search) !== false); } ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l7efb
function name:  (null)
number of ops:  12
compiled vars:  !0 = $search, !1 = $retorno, !2 = $meuArrayMultidimensional
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'uma+palavra+qualquer'
    4     1        INIT_FCALL                                               'array_keys'
    5     2        INIT_FCALL                                               'array_filter'
    6     3        SEND_VAR                                                 !2
    7     4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fl7efb%3A7%240'
          5        BIND_LEXICAL                                             ~4, !0
    9     6        SEND_VAL                                                 ~4
          7        DO_ICALL                                         $5      
          8        SEND_VAR                                                 $5
          9        DO_ICALL                                         $6      
    4    10        ASSIGN                                                   !1, $6
   11    11      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fl7efb%3A7%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l7efb
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $value, !1 = $search
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
    8     2        INIT_FCALL                                               'stripos'
          3        FETCH_DIM_R                                      ~2      !0, 'colunaDoArray'
          4        SEND_VAL                                                 ~2
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $3      
          7        TYPE_CHECK                                  1018  ~4      $3
          8      > RETURN                                                   ~4
    9     9*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fl7efb%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
198.25 ms | 1395 KiB | 19 Q