3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( 0 => (object)(array( 'custom_search_emp_id_11' => 'flag_emp_id_11', 'custom_search' => 'flag_emp_id_11', 'eti_id' => 1, 'time' => '1:00', 'emp_id' => 11 )), 1 => (object)(array( 'custom_search_emp_id_22' => 'flag_emp_id_22', 'custom_search' => 'flag_emp_id_22', 'eti_id' => 4, 'time' => '1:00', 'emp_id' => 22 )), 2 => (object)(array( 'custom_search_emp_id_33' => 'flag_emp_id_33', 'custom_search' => 'flag_emp_id_33', 'eti_id' => 5, 'time' => '1:00', 'emp_id' => 33 )), 3 => (object)(array( 'custom_search_emp_id_11' => 'flag_emp_id_11', 'custom_search' => 'flag_emp_id_11', 'eti_id' => 1, 'time' => '1:00', 'emp_id' => 11 )) ); $filtered_array = array_filter($array, function ($v) { return isset($v->custom_search_emp_id_11); }); print_r($filtered_array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z1sWK
function name:  (null)
number of ops:  19
compiled vars:  !0 = $array, !1 = $filtered_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   CAST                                          8  ~2      <array>
          1        INIT_ARRAY                                       ~3      ~2, 0
   13     2        CAST                                          8  ~4      <array>
          3        ADD_ARRAY_ELEMENT                                ~3      ~4, 1
   21     4        CAST                                          8  ~5      <array>
          5        ADD_ARRAY_ELEMENT                                ~3      ~5, 2
   29     6        CAST                                          8  ~6      <array>
          7        ADD_ARRAY_ELEMENT                                ~3      ~6, 3
    2     8        ASSIGN                                                   !0, ~3
   36     9        INIT_FCALL                                               'array_filter'
         10        SEND_VAR                                                 !0
         11        DECLARE_LAMBDA_FUNCTION                          ~8      [0]
         12        SEND_VAL                                                 ~8
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !1, $9
   37    15        INIT_FCALL                                               'print_r'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > 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/Z1sWK
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     0  E >   RECV                                             !0      
          1        ISSET_ISEMPTY_PROP_OBJ                           ~1      !0, 'custom_search_emp_id_11'
          2      > RETURN                                                   ~1
          3*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.78 ms | 1011 KiB | 15 Q