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><br>"; 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 = 40
Branch analysis from position: 40
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 11
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 77) Position 1 = 30, Position 2 = 38
Branch analysis from position: 30
2 jumps found. (Code = 78) Position 1 = 31, Position 2 = 38
Branch analysis from position: 31
2 jumps found. (Code = 77) Position 1 = 32, Position 2 = 36
Branch analysis from position: 32
2 jumps found. (Code = 78) Position 1 = 33, Position 2 = 36
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 36
Branch analysis from position: 38
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 11
Branch analysis from position: 42
Branch analysis from position: 11
Branch analysis from position: 38
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/j0PtG
function name:  (null)
number of ops:  43
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                                                      ->40
   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%3Cbr%3E'
         26        ECHO                                                     ~19
   13    27        INIT_FCALL                                               'flush'
         28        DO_ICALL                                                 
   15    29      > FE_RESET_R                                       $25     !0, ->38
         30    > > FE_FETCH_R                                               $25, !6, ->38
   16    31    > > FE_RESET_R                                       $26     !2, ->36
         32    > > FE_FETCH_R                                               $26, !7, ->36
   17    33    >   FE_FREE                                                  $26
         34      > JMP                                                      ->30
   16    35*       JMP                                                      ->32
         36    >   FE_FREE                                                  $26
   15    37      > JMP                                                      ->30
         38    >   FE_FREE                                                  $25
    8    39        PRE_INC                                                  !3
         40    >   IS_SMALLER                                               !3, 25600
         41      > JMPNZ                                                    ~28, ->11
   18    42    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.07 ms | 1400 KiB | 19 Q