3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array("","","","","","","","","","","","","","PHM","PHN","N","","M9",""); $filter = 8; For($i=0;$i<$filter;$i++){ If(isset($arr[$i])) unset($arr[$i]); } Var_dump($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 4
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 4
Branch analysis from position: 10
Branch analysis from position: 4
Branch analysis from position: 7
filename:       /in/WKMGO
function name:  (null)
number of ops:  14
compiled vars:  !0 = $arr, !1 = $filter, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 8
    6     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->8
    7     4    >   ISSET_ISEMPTY_DIM_OBJ                         0          !0, !2
          5      > JMPZ                                                     ~6, ->7
          6    >   UNSET_DIM                                                !0, !2
    6     7    >   PRE_INC                                                  !2
          8    >   IS_SMALLER                                               !2, !1
          9      > JMPNZ                                                    ~8, ->4
   10    10    >   INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.92 ms | 997 KiB | 14 Q