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)$assocArray[$key]['bal'] < $min_bal) { $min_bal = $assocArray[$key]['bal']; } if ((float)$assocArray[$key]['balber'] < $min_balber) { $min_balber = $assocArray[$key]['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 = 77) Position 1 = 20, Position 2 = 39
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 39
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 30
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 35, Position 2 = 38
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 38
Branch analysis from position: 30
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
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/8qIZW
function name:  (null)
number of ops:  41
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_R                                       $21     !0, ->39
         20    > > FE_FETCH_R                                       ~22     $21, !4, ->39
         21    >   ASSIGN                                                   !5, ~22
   15    22        FETCH_DIM_R                                      ~24     !0, !5
         23        FETCH_DIM_R                                      ~25     ~24, 'bal'
         24        CAST                                          4  ~26     ~25
         25        IS_SMALLER                                               ~26, !2
         26      > JMPZ                                                     ~27, ->30
   16    27    >   FETCH_DIM_R                                      ~28     !0, !5
         28        FETCH_DIM_R                                      ~29     ~28, 'bal'
         29        ASSIGN                                                   !2, ~29
   18    30    >   FETCH_DIM_R                                      ~31     !0, !5
         31        FETCH_DIM_R                                      ~32     ~31, 'balber'
         32        CAST                                          5  ~33     ~32
         33        IS_SMALLER                                               ~33, !3
         34      > JMPZ                                                     ~34, ->38
   19    35    >   FETCH_DIM_R                                      ~35     !0, !5
         36        FETCH_DIM_R                                      ~36     ~35, 'balber'
         37        ASSIGN                                                   !3, ~36
   14    38    > > JMP                                                      ->20
         39    >   FE_FREE                                                  $21
   21    40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.12 ms | 1399 KiB | 13 Q