3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array ( 0 => 'nested array', 1 => 'nested array', 2 => 'nested array', 3 => 'nested array', 4 => 'nested array', 5 => 'nested array', ); for ($key = 0, $end = max(array_keys($arr)) + 1; array_key_exists($key, $arr); $key++); var_dump($key);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 11
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 11
Branch analysis from position: 14
Branch analysis from position: 11
filename:       /in/bPMLh
function name:  (null)
number of ops:  18
compiled vars:  !0 = $arr, !1 = $key, !2 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        ASSIGN                                                   !1, 0
          2        INIT_FCALL                                               'max'
          3        INIT_FCALL                                               'array_keys'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        SEND_VAR                                                 $5
          7        DO_ICALL                                         $6      
          8        ADD                                              ~7      $6, 1
          9        ASSIGN                                                   !2, ~7
         10      > JMP                                                      ->12
         11    >   PRE_INC                                                  !1
         12    >   ARRAY_KEY_EXISTS                                         !1, !0
         13      > JMPNZ                                                    ~10, ->11
   13    14    >   INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.81 ms | 1395 KiB | 19 Q