3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cache = []; $cachedCount = 0; for($call = 1; $call <= 2050; $call++) { if (++$cachedCount > 1024) { $cache = []; $cachedCount = 0; } $cache[$call] = $call; // hidden calls : 100th to 1000th if($call == 100) echo '...'."\n"; if($call >= 100 && $call <= 1000) continue; // hidden calls : 1100th to 2000th if($call == 1100) echo '...'."\n"; if($call >= 1100 && $call <= 2000) continue; echo '$call='.$call.' $cachedCount='.$cachedCount.' count($cache)='.count($cache)."\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 38
Branch analysis from position: 38
2 jumps found. (Code = 44) Position 1 = 40, Position 2 = 4
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 40, Position 2 = 4
Branch analysis from position: 40
Branch analysis from position: 4
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 23
Branch analysis from position: 22
2 jumps found. (Code = 46) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 29
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 40, Position 2 = 4
Branch analysis from position: 40
Branch analysis from position: 4
Branch analysis from position: 27
Branch analysis from position: 23
Branch analysis from position: 18
Branch analysis from position: 14
Branch analysis from position: 9
filename:       /in/MsW7e
function name:  (null)
number of ops:  41
compiled vars:  !0 = $cache, !1 = $cachedCount, !2 = $call
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
    6     2        ASSIGN                                                   !2, 1
          3      > JMP                                                      ->38
    8     4    >   PRE_INC                                          ~6      !1
          5        IS_SMALLER                                               1024, ~6
          6      > JMPZ                                                     ~7, ->9
    9     7    >   ASSIGN                                                   !0, <array>
   10     8        ASSIGN                                                   !1, 0
   12     9    >   ASSIGN_DIM                                               !0, !2
         10        OP_DATA                                                  !2
   15    11        IS_EQUAL                                                 !2, 100
         12      > JMPZ                                                     ~11, ->14
   16    13    >   ECHO                                                     '...%0A'
   17    14    >   IS_SMALLER_OR_EQUAL                              ~12     100, !2
         15      > JMPZ_EX                                          ~12     ~12, ->18
         16    >   IS_SMALLER_OR_EQUAL                              ~13     !2, 1000
         17        BOOL                                             ~12     ~13
         18    > > JMPZ                                                     ~12, ->20
   18    19    > > JMP                                                      ->37
   21    20    >   IS_EQUAL                                                 !2, 1100
         21      > JMPZ                                                     ~14, ->23
   22    22    >   ECHO                                                     '...%0A'
   23    23    >   IS_SMALLER_OR_EQUAL                              ~15     1100, !2
         24      > JMPZ_EX                                          ~15     ~15, ->27
         25    >   IS_SMALLER_OR_EQUAL                              ~16     !2, 2000
         26        BOOL                                             ~15     ~16
         27    > > JMPZ                                                     ~15, ->29
   24    28    > > JMP                                                      ->37
   26    29    >   CONCAT                                           ~17     '%24call%3D', !2
         30        CONCAT                                           ~18     ~17, '+%24cachedCount%3D'
         31        CONCAT                                           ~19     ~18, !1
         32        CONCAT                                           ~20     ~19, '+count%28%24cache%29%3D'
         33        COUNT                                            ~21     !0
         34        CONCAT                                           ~22     ~20, ~21
         35        CONCAT                                           ~23     ~22, '%0A'
         36        ECHO                                                     ~23
    6    37    >   PRE_INC                                                  !2
         38    >   IS_SMALLER_OR_EQUAL                                      !2, 2050
         39      > JMPNZ                                                    ~25, ->4
   27    40    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.53 ms | 1015 KiB | 13 Q