3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.85 ms | 1394 KiB | 13 Q