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 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 8
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 8
Branch analysis from position: 18
Branch analysis from position: 8
filename:       /in/YcIFa
function name:  (null)
number of ops:  19
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
    6     2        ECHO                                                     '%3Cpre%3E'
          3        INIT_FCALL                                               'print_r'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
    8     6        ASSIGN                                                   !1, 0
          7      > JMP                                                      ->15
    9     8    >   ECHO                                                     'val+at+'
          9        ECHO                                                     !1
   10    10        ECHO                                                     '+'
         11        FETCH_DIM_R                                      ~5      !0, !1
         12        ECHO                                                     ~5
         13        ECHO                                                     '%0D%0A'
    8    14        PRE_INC                                                  !1
         15    >   COUNT                                            ~7      !0
         16        IS_SMALLER                                               !1, ~7
         17      > JMPNZ                                                    ~8, ->8
   11    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.71 ms | 1395 KiB | 15 Q