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' => '', ]; foreach ($array['journal_entries_strategy_conditions'] as $i => $row) { if (!$row['strategies_condition_id']) { unset($array['journal_entries_strategy_conditions'][$i]); } } var_export($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 10
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/9CiWa
function name:  (null)
number of ops:  16
compiled vars:  !0 = $array, !1 = $row, !2 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   17     1        FETCH_DIM_R                                          ~4      !0, 'journal_entries_strategy_conditions'
          2      > FE_RESET_R                                           $5      ~4, ->11
          3    > > FE_FETCH_R                                           ~6      $5, !1, ->11
          4    >   ASSIGN                                                       !2, ~6
   18     5        FETCH_DIM_R                                          ~8      !1, 'strategies_condition_id'
          6        BOOL_NOT                                             ~9      ~8
          7      > JMPZ                                                         ~9, ->10
   19     8    >   FETCH_DIM_UNSET                                      $10     !0, 'journal_entries_strategy_conditions'
          9        UNSET_DIM                                                    $10, !2
   17    10    > > JMP                                                          ->3
         11    >   FE_FREE                                                      $5
   23    12        INIT_FCALL                                                   'var_export'
         13        SEND_VAR                                                     !0
         14        DO_ICALL                                                     
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.8 ms | 1741 KiB | 14 Q