3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = []; // make some array for testing for($i=0; $i < 100; $i++) $array["key$i"] = $i; for($i=0; $i < 1000000; $i++) { reset($array); $firstKey = key($array); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 12
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 12
Branch analysis from position: 22
Branch analysis from position: 12
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
Branch analysis from position: 3
filename:       /in/b4DrN
function name:  (null)
number of ops:  23
compiled vars:  !0 = $array, !1 = $i, !2 = $firstKey
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->8
    6     3    >   NOP                                                      
          4        FAST_CONCAT                                      ~5      'key', !1
          5        ASSIGN_DIM                                               !0, ~5
          6        OP_DATA                                                  !1
    5     7        PRE_INC                                                  !1
          8    >   IS_SMALLER                                               !1, 100
          9      > JMPNZ                                                    ~8, ->3
    8    10    >   ASSIGN                                                   !1, 0
         11      > JMP                                                      ->20
    9    12    >   INIT_FCALL                                               'reset'
         13        SEND_REF                                                 !0
         14        DO_ICALL                                                 
   10    15        INIT_FCALL                                               'key'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $11     
         18        ASSIGN                                                   !2, $11
    8    19        PRE_INC                                                  !1
         20    >   IS_SMALLER                                               !1, 1000000
         21      > JMPNZ                                                    ~14, ->12
   11    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.63 ms | 1444 KiB | 15 Q