3v4l.org

run code in 300+ PHP versions simultaneously
<?php $assocArray = []; for ($i=0; $i < 100000; ++$i) { $assocArray['key' . $i] = 'hi ' . $i; } foreach ($assocArray as $key => $val) { $tmp = $val; }
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
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
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/knTfC
function name:  (null)
number of ops:  17
compiled vars:  !0 = $assocArray, !1 = $i, !2 = $val, !3 = $key, !4 = $tmp
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                                           ~7      'key', !1
          4        CONCAT                                           ~9      'hi+', !1
          5        ASSIGN_DIM                                               !0, ~7
          6        OP_DATA                                                  ~9
    4     7        PRE_INC                                                  !1
          8    >   IS_SMALLER                                               !1, 100000
          9      > JMPNZ                                                    ~11, ->3
    8    10    > > FE_RESET_R                                       $12     !0, ->15
         11    > > FE_FETCH_R                                       ~13     $12, !2, ->15
         12    >   ASSIGN                                                   !3, ~13
    9    13        ASSIGN                                                   !4, !2
    8    14      > JMP                                                      ->11
         15    >   FE_FREE                                                  $12
   10    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.69 ms | 1393 KiB | 13 Q