3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'ConsumerDetail' => [ 'quote_id' => 'QU-12-14-T2887', 'client_name' => 'asdf asdf', 'agent_name' => 'flip flob 2313123', 'zipcode' => 66002, 'dob' => '01/02/1996', ], ], [ 'ConsumerDetail' => [ 'quote_id' => 'QU-12-14-R4118', 'client_name' => 'james anderson', 'agent_name' => 'JOSEPH NEPTUNE', 'zipcode' => 64656, 'dob' => '07/16/1958', ], ], [ 'ConsumerDetail' => [ 'quote_id' => 'QU-12-14-W2042', 'client_name' => 'flip leathers', 'agent_name' => 'test agen', 'zipcode' => 65018, 'dob' => '12/17/1979', ], ], ]; $needle = 'flip'; var_export( array_filter( $array, fn($row) => stripos(implode('_', $row['ConsumerDetail']), $needle) !== false ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TMO1q
function name:  (null)
number of ops:  12
compiled vars:  !0 = $array, !1 = $needle
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   33     1        ASSIGN                                                   !1, 'flip'
   34     2        INIT_FCALL                                               'var_export'
   35     3        INIT_FCALL                                               'array_filter'
   36     4        SEND_VAR                                                 !0
   37     5        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
          6        BIND_LEXICAL                                             ~4, !1
   38     7        SEND_VAL                                                 ~4
   35     8        DO_ICALL                                         $5      
   38     9        SEND_VAR                                                 $5
   34    10        DO_ICALL                                                 
   39    11      > 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/TMO1q
function name:  {closure}
number of ops:  14
compiled vars:  !0 = $row, !1 = $needle
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   37     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
          2        INIT_FCALL                                               'stripos'
          3        INIT_FCALL                                               'implode'
          4        SEND_VAL                                                 '_'
          5        FETCH_DIM_R                                      ~2      !0, 'ConsumerDetail'
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $4      
         11        TYPE_CHECK                                  1018  ~5      $4
         12      > RETURN                                                   ~5
   38    13*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.74 ms | 1013 KiB | 17 Q