3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['foo', 'bar', 'bazbazbaz', '4242424242', 'blub']; for ($i = 0, $length = count($array); $i < $length; $i++) { if (strlen($array[$i]) > 6) { unset($array[$i]); } } var_dump($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 5
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 5
Branch analysis from position: 13
Branch analysis from position: 5
Branch analysis from position: 10
filename:       /in/1AH3A
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array, !1 = $i, !2 = $length
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 0
          2        COUNT                                            ~5      !0
          3        ASSIGN                                                   !2, ~5
          4      > JMP                                                      ->11
    6     5    >   FETCH_DIM_R                                      ~7      !0, !1
          6        STRLEN                                           ~8      ~7
          7        IS_SMALLER                                               6, ~8
          8      > JMPZ                                                     ~9, ->10
    7     9    >   UNSET_DIM                                                !0, !1
    5    10    >   PRE_INC                                                  !1
         11    >   IS_SMALLER                                               !1, !2
         12      > JMPNZ                                                    ~11, ->5
   11    13    >   INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.6 ms | 1395 KiB | 15 Q