3v4l.org

run code in 300+ PHP versions simultaneously
<?php $runs = 10000; $a = range(1,$runs); for ($i = 1; $i <= $runs; $i++) { if (isset($a[$i])) { } }
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 = 8
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 8
Branch analysis from position: 13
Branch analysis from position: 8
Branch analysis from position: 10
filename:       /in/ugOim
function name:  (null)
number of ops:  14
compiled vars:  !0 = $runs, !1 = $a, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 10000
    3     1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 1
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    5     6        ASSIGN                                                   !2, 1
          7      > JMP                                                      ->11
    6     8    >   ISSET_ISEMPTY_DIM_OBJ                         0          !1, !2
          9      > JMPZ                                                     ~7, ->10
    5    10    >   PRE_INC                                                  !2
         11    >   IS_SMALLER_OR_EQUAL                                      !2, !0
         12      > JMPNZ                                                    ~9, ->8
    9    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.56 ms | 1399 KiB | 15 Q