3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $ar1 = array(); for($i = 0; $i < 1000; $i++){ $ar1[] = 'a' . $i; } unset($ar1['775']); unset($ar1['175']); unset($ar1['75']);
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 8
Branch analysis from position: 8
Jump found. Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
Jump found. Position 1 = -2
Branch analysis from position: 3
Jump found. Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
Branch analysis from position: 3
filename:       /in/PThT8
function name:  (null)
number of ops:  14
compiled vars:  !0 = $ar1, !1 = $i
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, <array>
   4     1        ASSIGN                                                   !1, 0
         2      > JMP                                                      ->8
   5     3    >   CONCAT                                           ~5      'a', !1
         4        ASSIGN_DIM                                               !0
         5        OP_DATA                                                  ~5
   4     6        POST_INC                                         ~6      !1
         7        FREE                                                     ~6
         8    >   IS_SMALLER                                       ~7      !1, 1000
         9      > JMPNZ                                                    ~7, ->3
   7    10    >   UNSET_DIM                                                !0, 775
   8    11        UNSET_DIM                                                !0, 175
   9    12        UNSET_DIM                                                !0, 75
        13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0