3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array ( 0 => array ( 'email' => array ( 0 => 'test@domain.de', ), 'customerID' => '13', ), 1 => array ( 'email' => array ( 0 => 'mail@domain.de', 1 => 'yourmail@domain.de', ), 'customerID' => '48', ), ); print_r(array_filter($array, fn($x) => array_search('test@domain.de', $x['email']) !== false));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/51QE7
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>
   23     1        INIT_FCALL                                                   'print_r'
          2        INIT_FCALL                                                   'array_filter'
          3        SEND_VAR                                                     !0
          4        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
          5        SEND_VAL                                                     ~2
          6        DO_ICALL                                             $3      
          7        SEND_VAR                                                     $3
          8        DO_ICALL                                                     
          9      > 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/51QE7
function name:  {closure:/in/51QE7:23}
number of ops:  9
compiled vars:  !0 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
          0  E >   RECV                                                 !0      
          1        INIT_FCALL                                                   'array_search'
          2        SEND_VAL                                                     'test%40domain.de'
          3        FETCH_DIM_R                                          ~1      !0, 'email'
          4        SEND_VAL                                                     ~1
          5        DO_ICALL                                             $2      
          6        TYPE_CHECK                                      1018  ~3      $2
          7      > RETURN                                                       ~3
          8*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.26 ms | 2005 KiB | 16 Q