3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ 'ticket_number' => 'sdfsdfsdf 2', 'strategy_id' => '5', 'journal_entries_strategy_conditions' => [ 0 => [ 'strategies_condition_id' => '' ], 1 => [ 'strategies_condition_id' => '1' ] ], 'timeframe' => '', ]; $array['journal_entries_strategy_conditions'] = array_filter( $array['journal_entries_strategy_conditions'], fn($v) => $v['strategies_condition_id'] ); var_export($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L7elQ
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   17     1        INIT_FCALL                                                   'array_filter'
   18     2        FETCH_DIM_R                                          ~3      !0, 'journal_entries_strategy_conditions'
          3        SEND_VAL                                                     ~3
   19     4        DECLARE_LAMBDA_FUNCTION                              ~4      [0]
   20     5        SEND_VAL                                                     ~4
   17     6        DO_ICALL                                             $5      
          7        ASSIGN_DIM                                                   !0, 'journal_entries_strategy_conditions'
   20     8        OP_DATA                                                      $5
   22     9        INIT_FCALL                                                   'var_export'
         10        SEND_VAR                                                     !0
         11        DO_ICALL                                                     
         12      > 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/L7elQ
function name:  {closure:/in/L7elQ:19}
number of ops:  4
compiled vars:  !0 = $v
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   19     0  E >   RECV                                                 !0      
          1        FETCH_DIM_R                                          ~1      !0, 'strategies_condition_id'
          2      > RETURN                                                       ~1
   20     3*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
172.93 ms | 1742 KiB | 15 Q