3v4l.org

run code in 300+ PHP versions simultaneously
<?php $assocArray = []; for ($i=0; $i < 100000; ++$i) { $assocArray['key' . $i] = array( 'bal' => $i, 'balber' => $i ); } $min_bal = (int)$assocArray['key0']['bal']; $min_balber = (float)$assocArray['key0']['balber']; foreach ($assocArray as $key => &$val) { if ((int)$val['bal'] < $min_bal) { $min_bal = $val['bal']; } if ((float)$val['balber'] < $min_balber) { $min_balber = $val['balber']; } }
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 = 125) Position 1 = 20, Position 2 = 35
Branch analysis from position: 20
2 jumps found. (Code = 126) Position 1 = 21, Position 2 = 35
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 28
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 34
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 34
Branch analysis from position: 28
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
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/94vaU
function name:  (null)
number of ops:  37
compiled vars:  !0 = $assocArray, !1 = $i, !2 = $min_bal, !3 = $min_balber, !4 = $val, !5 = $key
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                                           ~8      'key', !1
    6     4        INIT_ARRAY                                       ~10     !1, 'bal'
    7     5        ADD_ARRAY_ELEMENT                                ~10     !1, 'balber'
    5     6        ASSIGN_DIM                                               !0, ~8
    7     7        OP_DATA                                                  ~10
    4     8        PRE_INC                                                  !1
          9    >   IS_SMALLER                                               !1, 100000
         10      > JMPNZ                                                    ~12, ->3
   11    11    >   FETCH_DIM_R                                      ~13     !0, 'key0'
         12        FETCH_DIM_R                                      ~14     ~13, 'bal'
         13        CAST                                          4  ~15     ~14
         14        ASSIGN                                                   !2, ~15
   12    15        FETCH_DIM_R                                      ~17     !0, 'key0'
         16        FETCH_DIM_R                                      ~18     ~17, 'balber'
         17        CAST                                          5  ~19     ~18
         18        ASSIGN                                                   !3, ~19
   14    19      > FE_RESET_RW                                      $21     !0, ->35
         20    > > FE_FETCH_RW                                      ~22     $21, !4, ->35
         21    >   ASSIGN                                                   !5, ~22
   15    22        FETCH_DIM_R                                      ~24     !4, 'bal'
         23        CAST                                          4  ~25     ~24
         24        IS_SMALLER                                               ~25, !2
         25      > JMPZ                                                     ~26, ->28
   16    26    >   FETCH_DIM_R                                      ~27     !4, 'bal'
         27        ASSIGN                                                   !2, ~27
   18    28    >   FETCH_DIM_R                                      ~29     !4, 'balber'
         29        CAST                                          5  ~30     ~29
         30        IS_SMALLER                                               ~30, !3
         31      > JMPZ                                                     ~31, ->34
   19    32    >   FETCH_DIM_R                                      ~32     !4, 'balber'
         33        ASSIGN                                                   !3, ~32
   14    34    > > JMP                                                      ->20
         35    >   FE_FREE                                                  $21
   21    36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.77 ms | 1399 KiB | 13 Q