3v4l.org

run code in 500+ PHP versions simultaneously
<?php // Input: $_GET['inicio'] = '7'; $_GET['final'] = '45'; $_GET['incremento'] = '4'; // Trata o input: $inicio = $_GET['inicio'] ?? 0; $inicio = is_numeric($inicio) ? $inicio : 0; $final = $_GET['final'] ?? 0; $final = is_numeric($final) ? $final : 0; $incremento = $_GET['incremento'] ?? 1; $incremento = is_numeric($incremento) && $incremento != 0 ? $incremento : 1; // Faz o mesmo que o `while`: echo implode(' ', range($inicio, $final, $incremento));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 46) Position 1 = 38, Position 2 = 40
Branch analysis from position: 38
2 jumps found. (Code = 43) Position 1 = 41, Position 2 = 43
Branch analysis from position: 41
1 jumps found. (Code = 42) Position 1 = 44
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 40
Branch analysis from position: 29
2 jumps found. (Code = 46) Position 1 = 38, Position 2 = 40
Branch analysis from position: 38
Branch analysis from position: 40
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
Branch analysis from position: 29
filename:       /in/GZDsq
function name:  (null)
number of ops:  53
compiled vars:  !0 = $inicio, !1 = $final, !2 = $incremento
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                          global              $3      '_GET'
          1        ASSIGN_DIM                                                   $3, 'inicio'
          2        OP_DATA                                                      '7'
    4     3        FETCH_W                          global              $5      '_GET'
          4        ASSIGN_DIM                                                   $5, 'final'
          5        OP_DATA                                                      '45'
    5     6        FETCH_W                          global              $7      '_GET'
          7        ASSIGN_DIM                                                   $7, 'incremento'
          8        OP_DATA                                                      '4'
    9     9        FETCH_IS                                             ~9      '_GET'
         10        FETCH_DIM_IS                                         ~10     ~9, 'inicio'
         11        COALESCE                                             ~11     ~10
         12        QM_ASSIGN                                            ~11     0
         13        ASSIGN                                                       !0, ~11
   10    14        FRAMELESS_ICALL_1                is_numeric          ~13     !0
         15      > JMPZ                                                         ~13, ->18
         16    >   QM_ASSIGN                                            ~14     !0
         17      > JMP                                                          ->19
         18    >   QM_ASSIGN                                            ~14     0
         19    >   ASSIGN                                                       !0, ~14
   12    20        FETCH_IS                                             ~16     '_GET'
         21        FETCH_DIM_IS                                         ~17     ~16, 'final'
         22        COALESCE                                             ~18     ~17
         23        QM_ASSIGN                                            ~18     0
         24        ASSIGN                                                       !1, ~18
   13    25        FRAMELESS_ICALL_1                is_numeric          ~20     !1
         26      > JMPZ                                                         ~20, ->29
         27    >   QM_ASSIGN                                            ~21     !1
         28      > JMP                                                          ->30
         29    >   QM_ASSIGN                                            ~21     0
         30    >   ASSIGN                                                       !1, ~21
   15    31        FETCH_IS                                             ~23     '_GET'
         32        FETCH_DIM_IS                                         ~24     ~23, 'incremento'
         33        COALESCE                                             ~25     ~24
         34        QM_ASSIGN                                            ~25     1
         35        ASSIGN                                                       !2, ~25
   16    36        FRAMELESS_ICALL_1                is_numeric          ~27     !2
         37      > JMPZ_EX                                              ~27     ~27, ->40
         38    >   IS_NOT_EQUAL                                         ~28     !2, 0
         39        BOOL                                                 ~27     ~28
         40    > > JMPZ                                                         ~27, ->43
         41    >   QM_ASSIGN                                            ~29     !2
         42      > JMP                                                          ->44
         43    >   QM_ASSIGN                                            ~29     1
         44    >   ASSIGN                                                       !2, ~29
   19    45        INIT_FCALL                                                   'range'
         46        SEND_VAR                                                     !0
         47        SEND_VAR                                                     !1
         48        SEND_VAR                                                     !2
         49        DO_ICALL                                             $31     
         50        FRAMELESS_ICALL_2                implode             ~32     '+', $31
         51        ECHO                                                         ~32
         52      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
173.27 ms | 2060 KiB | 14 Q