3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.03 ms | 1395 KiB | 15 Q