3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array("foo", "baa", "ahahaha"); unset($a[1]); //echo '<pre>'; print_r($a); for($i = 0; $i < count($a); $i++) { echo 'val at ', $i; echo " ", $a[$i], "\r\n"; }
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 = 14, Position 2 = 4
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 4
Branch analysis from position: 14
Branch analysis from position: 4
filename:       /in/dAJ7Q
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        UNSET_DIM                                                !0, 1
    8     2        ASSIGN                                                   !1, 0
          3      > JMP                                                      ->11
    9     4    >   ECHO                                                     'val+at+'
          5        ECHO                                                     !1
   10     6        ECHO                                                     '+'
          7        FETCH_DIM_R                                      ~4      !0, !1
          8        ECHO                                                     ~4
          9        ECHO                                                     '%0D%0A'
    8    10        PRE_INC                                                  !1
         11    >   COUNT                                            ~6      !0
         12        IS_SMALLER                                               !1, ~6
         13      > JMPNZ                                                    ~7, ->4
   11    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.11 ms | 1384 KiB | 13 Q