3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = range(0,100); $start = (int)isset($_GET['start']) ? $_GET['start'] : 0; $limit = $start + 10; for ($i = $start; $i < $limit; $i++) { $item = $data[$i]; var_dump($item); } if ($i < count($data)) { header('Location: /VqVoN?start=' . $i); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 19
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 34
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 19
Branch analysis from position: 27
Branch analysis from position: 19
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
filename:       /in/qbrK7
function name:  (null)
number of ops:  35
compiled vars:  !0 = $data, !1 = $start, !2 = $limit, !3 = $i, !4 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 100
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !0, $5
    5     5        FETCH_IS                                         ~7      '_GET'
          6        ISSET_ISEMPTY_DIM_OBJ                         0  ~8      ~7, 'start'
          7        CAST                                          4  ~9      ~8
          8      > JMPZ                                                     ~9, ->13
          9    >   FETCH_R                      global              ~10     '_GET'
         10        FETCH_DIM_R                                      ~11     ~10, 'start'
         11        QM_ASSIGN                                        ~12     ~11
         12      > JMP                                                      ->14
         13    >   QM_ASSIGN                                        ~12     0
         14    >   ASSIGN                                                   !1, ~12
    6    15        ADD                                              ~14     !1, 10
         16        ASSIGN                                                   !2, ~14
    8    17        ASSIGN                                                   !3, !1
         18      > JMP                                                      ->25
    9    19    >   FETCH_DIM_R                                      ~17     !0, !3
         20        ASSIGN                                                   !4, ~17
   10    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !4
         23        DO_ICALL                                                 
    8    24        PRE_INC                                                  !3
         25    >   IS_SMALLER                                               !3, !2
         26      > JMPNZ                                                    ~21, ->19
   13    27    >   COUNT                                            ~22     !0
         28        IS_SMALLER                                               !3, ~22
         29      > JMPZ                                                     ~23, ->34
   14    30    >   INIT_FCALL                                               'header'
         31        CONCAT                                           ~24     'Location%3A+%2FVqVoN%3Fstart%3D', !3
         32        SEND_VAL                                                 ~24
         33        DO_ICALL                                                 
   15    34    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.74 ms | 1396 KiB | 19 Q