3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data=array(); for($c=0; $c<32; $c++) $data[$c]=array(1, 2, 3); $filter=array(1, 2, 3); for($kc=0; $kc<25600; $kc++) { $cm=memory_get_usage(true); $pm=memory_get_peak_usage(true); echo "<b>loop $kc: current_memory: $cm, peak_memory: $pm...</b>" . PHP_EOL; flush(); foreach($data as $entry) foreach($filter as $pattern) continue 2; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 3
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 11
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 77) Position 1 = 31, Position 2 = 39
Branch analysis from position: 31
2 jumps found. (Code = 78) Position 1 = 32, Position 2 = 39
Branch analysis from position: 32
2 jumps found. (Code = 77) Position 1 = 33, Position 2 = 37
Branch analysis from position: 33
2 jumps found. (Code = 78) Position 1 = 34, Position 2 = 37
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
Branch analysis from position: 37
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 11
Branch analysis from position: 43
Branch analysis from position: 11
Branch analysis from position: 39
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 3
Branch analysis from position: 8
Branch analysis from position: 3
filename:       /in/Fkvn6
function name:  (null)
number of ops:  44
compiled vars:  !0 = $data, !1 = $c, !2 = $filter, !3 = $kc, !4 = $cm, !5 = $pm, !6 = $entry, !7 = $pattern
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->6
    5     3    >   ASSIGN_DIM                                               !0, !1
          4        OP_DATA                                                  <array>
    4     5        PRE_INC                                                  !1
          6    >   IS_SMALLER                                               !1, 32
          7      > JMPNZ                                                    ~12, ->3
    6     8    >   ASSIGN                                                   !2, <array>
    8     9        ASSIGN                                                   !3, 0
         10      > JMP                                                      ->41
   10    11    >   INIT_FCALL                                               'memory_get_usage'
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $15     
         14        ASSIGN                                                   !4, $15
   11    15        INIT_FCALL                                               'memory_get_peak_usage'
         16        SEND_VAL                                                 <true>
         17        DO_ICALL                                         $17     
         18        ASSIGN                                                   !5, $17
   12    19        ROPE_INIT                                     7  ~20     '%3Cb%3Eloop+'
         20        ROPE_ADD                                      1  ~20     ~20, !3
         21        ROPE_ADD                                      2  ~20     ~20, '%3A+current_memory%3A+'
         22        ROPE_ADD                                      3  ~20     ~20, !4
         23        ROPE_ADD                                      4  ~20     ~20, '%2C+peak_memory%3A+'
         24        ROPE_ADD                                      5  ~20     ~20, !5
         25        ROPE_END                                      6  ~19     ~20, '...%3C%2Fb%3E'
         26        CONCAT                                           ~24     ~19, '%0A'
         27        ECHO                                                     ~24
   13    28        INIT_FCALL                                               'flush'
         29        DO_ICALL                                                 
   15    30      > FE_RESET_R                                       $26     !0, ->39
         31    > > FE_FETCH_R                                               $26, !6, ->39
   16    32    > > FE_RESET_R                                       $27     !2, ->37
         33    > > FE_FETCH_R                                               $27, !7, ->37
   17    34    >   FE_FREE                                                  $27
         35      > JMP                                                      ->31
   16    36*       JMP                                                      ->33
         37    >   FE_FREE                                                  $27
   15    38      > JMP                                                      ->31
         39    >   FE_FREE                                                  $26
    8    40        PRE_INC                                                  !3
         41    >   IS_SMALLER                                               !3, 25600
         42      > JMPNZ                                                    ~29, ->11
   18    43    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.68 ms | 1405 KiB | 19 Q