3v4l.org

run code in 300+ PHP versions simultaneously
<?php $power = [4 => 20, 6 => 0, 18 => 5]; var_dump(array_filter($power)); foreach ($power as $id => $p) { if (0 === $p) { unset($power[$id]); } } var_dump($power);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/nul2U
function name:  (null)
number of ops:  19
compiled vars:  !0 = $power, !1 = $p, !2 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'array_filter'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        SEND_VAR                                                 $4
          6        DO_ICALL                                                 
    7     7      > FE_RESET_R                                       $6      !0, ->14
          8    > > FE_FETCH_R                                       ~7      $6, !1, ->14
          9    >   ASSIGN                                                   !2, ~7
    8    10        IS_IDENTICAL                                             !1, 0
         11      > JMPZ                                                     ~9, ->13
    9    12    >   UNSET_DIM                                                !0, !2
    7    13    > > JMP                                                      ->8
         14    >   FE_FREE                                                  $6
   12    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.24 ms | 1399 KiB | 17 Q